Fixes:
- Request content types auto substitution
i.e. if request body is form data, then request body content type will bemultipart/form-data
- Strange method name (issue #152, thanks @RoXuS)
- Hardcoded Content-Type causes issues with some endpoints (issue #153, thanks @po5i)
- Critical bug with
:paramName
path params (issue #154)
Features:
- Ability to provide custom formatting
fetch
response "IMAGE"
content kind for response\request data objectsRequestParams
RequestHeaders
types for--route-types
(routeTypes: true
) option (issue #150, thanks @Fabiencdp )--default-response
option. Allows to set default type for empty response schema (default:void
) (based on issue #14)- Request cancellation support (issue #96, thanks @ApacheEx)
RequestParams
type now have thecancelToken
field
HttpClient
instance now have theabortRequest(cancelToken)
method
BREAKING_CHANGES:
- Fully refactored
http-client.eta
template, make it more flexible and simpler.
HttpClient["request"]
takes one argument with typeFullRequestParams
(previously it takes many count of arguments which was not flexible) - Changed the default response body type from
any
tovoid
(issue #14)
Internal:
- Changed templates:
http-client.eta
procedure-call.eta
api.eta
This version works with previous templates.