Releases: salixzs/RestClient
Release 3.3.3
Added check for "data
" object being a subclass of HttpContent
and then passing it to request as-is.
This allows to submit predefined (more raw) Request objects without serialization. Example: submit (post) files as MultipartFormDataContent
.
Release 3.3.2
- Bugfix - anonymous object for QueryParameters with null values throws exception.
From 3.3.1 (included here):
- Added interceptor points "BeforeRequest" and "AfterResponse".
- Added properties to get "IsSuccessStatusCode" and StatusCode itself after call.
- Missed nullability of IsSuccessCode property.
Release 3.3.0
Added intercepting overridable methods to inspect/modify HttpRequest object just before API call and overridable method to intercept HttpResponse object together with Exception (if it was formed) to be able to globally handle something might be required for application.
Added access to IsSuccess and HttpStatusCode properties after call was made.
Release 3.2.0
- Added
CancellationToken
parameter to async methods with defaultNone
(should not introduce breaking change) - Added
GetCommonHeaders()
overridable method to have global request header values. (Wiki)
Release 3.1.0
Heavy breaking changes!
Considerable rewrite with plenty of improvements in code and documentation (see repository Wiki).
Changes:
- Made sure Abstract class works in any of 3 scenarios - Factory, Named Factory and Typed client - with/without interface.
- Added overridable methods to read authentication token or ApiKey from outside before each HttpClient request.
- Added
Response.ReasonPhrase
toRestClientException
when there is server failure for request. - Added
PathParameters
collection to replacedynamic
and avoid collision with object data parameter. - Renamed QueryParameterCollection to QueryParameters to shorten and increase consistency with new PathParameters
- Exposed GetRequestMessage and SendMessageAsync methods to work with them on lower level.
- Added missing extension methods + and heavily documented all.
- Internally package code base covered with much more unit-tests.
- Package is now embracing NULLABLE reference types (C# v8+).
Release 3.0.1
DEPRECATED. Incomplete functionality.
Added ReasonPhrase
to RestClientException
.
Release 3.0.0
DEPRECATED. Incomplete functionality.
Heavy breaking changes! Considerable rewrite with plenty of improvements in code and documentation (see repository Wiki).
- Made sure Abstract class works in any of 3 scenarios - Factory, Named Factory and Typed client - with/without interface.
- Added method to read authentication token or apiKey from outside via overrideable method call before each HttpClient request.
- Added missing extension methods + and heavily documented all.
- Package is now embracing NULLABLE reference types.
Release 2.0.0
Breaking changes in AbstractRestClient constructors. Now it demands IHttpClientFactory (instead of HttpClient).