Repository navigation
0.3.0
Features
-
http client factory: validate options on
Add, in order to have better errors. -
http client factory: add default options to reduce the amount of config required (when not specified).
-
http client factory:
Addnow returns newly createdFluentHttpClient. -
http client factory: implement
WithRequestBuilderDefaultsadditional hook in order customizeFluentHttpRequestBuilderon creation. -
http client factory: implement
WithMessageHandlerin order to replace the HTTP stack for the HTTP client. -
http client factory: implement
AddwithFluentHttpClientOptions. -
http client factory: extract interface
IFluentHttpClientFactoryfromFluentHttpClientFactory. -
http client builder: add new method
AddMiddleware(Type). -
http client builder: align naming with request builder.
-
request builder: implement
WithSuccessStatusto specify or not whether to throw or not when request is not successful. -
request builder: implement
WithCancellationTokento be able to cancel http request. -
request builder: Http method now defaults as
Get. -
http client: implement
PatchandDeletemethods. -
http client: extract interface
IFluentHttpClientfromFluentHttpClient.
BREAKING CHANGES
IFluentHttpResponsehas been removed and addedFluentHttpResponseinstead. In addition, most ofFluentHttpResponse<T>method has been changed withFluentHttpResponse.
Most of the changes should only effect the internals, apart from middlewares.- Now requests created by
FluentHttpRequestBuilderwon't throw unless specified when request is not succeeded. FluentHttpClientFactory.Addnow returns the newFluentHttpClientinstance instead ofFluentHttpClientFactory.FluentHttpClientBuildermethods naming alignmentSetBaseUrl=>WithBaseUrlSetTimeout=>WithTimeoutAddHeader=>WithHeaderAddHeaders=>WithHeadersAddHeaders=>WithHeaders
- Middleware related has been moved to
FluentlyHttpClient.Middlewarenamespace, this effects:LoggerHttpMiddlewareTimerHttpMiddlewareIFluentHttpMiddlewareIFluentHttpMiddlewareRunner
FluentHttpClientFactoryusages now is changed withIFluentHttpClientFactoryFluentHttpClientusages now is changed withIFluentHttpClient