- The default
Content-Type
header has been removed. You must set this manually or use a format helper, such asasJson
. - Dropped support for Adobe 2016.
HyperHttpClientInterface
now requires a debug
method.
/**
* Return a struct of information showing how the client will execute the HyperRequest.
* This will be used by a developer to debug any differences between the generated
* request values and the expected request values.
*
* @req The HyperRequest to debug.
*
* @returns A struct of information detailing how the client would execute the HyperRequest.
*/
public struct function debug( required HyperRequest req );
Previously, query params were stored as a struct. Some APIs expect multiple values for the same query param name to be passed as separate arguments. Hyper now stores the query params as an array and provides new methods for interacting with query params:
getQueryParamByName
getAllQueryParamsByName
withQueryParams
appendQueryParam
appendQueryParams
hasQueryParam
The following methods still exist, but now interact with arrays of query param structs instead of a simple struct.
The following methods have been deprecated:
Deprecated Method | Replacement Method |
---|---|
getQueryParam |
getQueryParamByName |
Dropped support for ColdBox 5.
Dropped support for Lucee 4.5.