Skip to content

Releases: dragonfruitnetwork/rest-client

2020.925

25 Sep 18:46
398fd20
Compare
Choose a tag to compare

Adds a new ApiRequest, BasicApiRequest. This allows for a client to perform a really simple request with a url and a set of queries without needing to create a new ApiRequest inheritance.

For examples, see #24

2020.807

07 Aug 10:50
3f2c769
Compare
Choose a tag to compare

Important Changes

Due to potential overflow issues with the CustomHeader property, we've changed the backend it uses. This means most of the Dictionary functionality is now not available. To set a header now, please use the Headers property with an indexer (getting and setting the same way you would a normal dictionary) like Headers["key"] = "value";. To remove a header, set the value of it to null

Other changes

  • Cleaned up the serializers to dispose of streams and tasks used properly.
  • Refactored the Utils class to the Headers class

2020.803

03 Aug 13:38
Compare
Choose a tag to compare
2020.803 Pre-release
Pre-release

Added a new publicly visible method, ApiRequest.Build() that can be used to convert a request into a HttpRequestMessage

2020.802

02 Aug 06:52
Compare
Choose a tag to compare
2020.802 Pre-release
Pre-release

Internal change to allow users to access disposed objects inside of a HttpResponseMessage returned by Client.Perform(). This means they must be disposed of manually

2020.730.1

30 Jul 10:03
f3aaec4
Compare
Choose a tag to compare
2020.730.1 Pre-release
Pre-release

See 2020.730 release for details

2020.730 (beta)

30 Jul 08:57
bc114f9
Compare
Choose a tag to compare
2020.730 (beta) Pre-release
Pre-release

This release involves significant refactors and accessibility reductions.

  • Adds Request-Level Headers
  • Removes PerformLast<T>() and PerformLast()`
  • Moves most of the virtual methods. To achieve the same result, override the method by overlaying it (i.e in your client make an identical method to the base and use that instead)
  • Add Perform<T>() for a pre-fabricated HttpRequestMessage
  • Add a handler wrapper for redirecting and keeping the auth header
  • Removes ~60% duplicated code

2020.714.1

14 Jul 14:33
fe92e58
Compare
Choose a tag to compare
2020.714.1 Pre-release
Pre-release

Includes further fixes for the HeaderPreservingRedirectHandler

2020.714

14 Jul 12:42
df41c99
Compare
Choose a tag to compare
2020.714 Pre-release
Pre-release

Adds a new HeaderPreservingRedirectHandler for edge-cases involving lost headers when redirecting to the same host.

2020.711.3

12 Jul 14:10
dddbf84
Compare
Choose a tag to compare
2020.711.3 Pre-release
Pre-release

Changes:

  • Changed conversion of bool to always return in lowercase (true and false)
  • Added FileServices.GetFileOrDefault<T>(string location);