Skip to content

Releases: salixzs/RestClient

Release 3.3.3

14 Sep 22:02
Compare
Choose a tag to compare

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

18 Aug 08:33
Compare
Choose a tag to compare
  • 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

22 May 18:45
Compare
Choose a tag to compare

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

15 May 14:19
Compare
Choose a tag to compare
  • Added CancellationToken parameter to async methods with default None (should not introduce breaking change)
  • Added GetCommonHeaders() overridable method to have global request header values. (Wiki)

Release 3.1.0

22 Feb 14:43
Compare
Choose a tag to compare

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 to RestClientException when there is server failure for request.
  • Added PathParameters collection to replace dynamic 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

21 Feb 14:41
Compare
Choose a tag to compare

DEPRECATED. Incomplete functionality.

Added ReasonPhrase to RestClientException.

Release 3.0.0

19 Feb 19:11
Compare
Choose a tag to compare

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

13 Aug 15:56
Compare
Choose a tag to compare

Breaking changes in AbstractRestClient constructors. Now it demands IHttpClientFactory (instead of HttpClient).