1.1.0: Feature/beyond 1.0 enhancements (#5)
Features
-
request builder: implement
WithItem
which allows to set custom items that can be used to share data within the scope of request, response, and middleware. -
request builder: add
WithUserAgent
extension. -
request builder: add validation for request when 'GET' and has body content, to not be allowed. As it will blow up the underlying HttpClient.
-
request: add
Formatters
which can be useful for middleware. -
message state: extract interface
IFluentHttpMessageState
, which bothFluentHttpRequest
andFluentHttpResponse
implements.
This will allow sharing implementations for extensions methods acrossFluentHttpRequest
andFluentHttpResponse
related toItems
. -
header builder: extract interface
IFluentHttpHeaderBuilder
, which bothFluentHttpClientBuilder
andFluentHttpRequestBuilder
implements.
This will allow sharing implementations for extensions methods acrossFluentHttpClientBuilder
andFluentHttpRequestBuilder
related toHeaders
. -
http client builder: formatter JSON is now configured with camelcase property names by default.
-
http client builder: now shares request builder headers extensions such as
WithUserAgent
andWithBearerAuthentication
. -
http client builder: implement
ConfigureDefaults
which enables to configure defaults for newly created http clients. -
logger middleware: add extension method
UseLogging
. -
consts: add constants for headers and auth schemes
HeaderTypes
andAuthSchemeTypes