Skip to content

1.1.0: Feature/beyond 1.0 enhancements (#5)

Compare
Choose a tag to compare
@stephenlautier stephenlautier released this 02 Jul 01:08
· 95 commits to master since this release

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 both FluentHttpRequest and FluentHttpResponse implements.
    This will allow sharing implementations for extensions methods across FluentHttpRequest and FluentHttpResponse related to Items.

  • header builder: extract interface IFluentHttpHeaderBuilder, which both FluentHttpClientBuilder and FluentHttpRequestBuilder implements.
    This will allow sharing implementations for extensions methods across FluentHttpClientBuilder and FluentHttpRequestBuilder related to Headers.

  • 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 and WithBearerAuthentication.

  • 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 and AuthSchemeTypes