Releases: dragonfruitnetwork/rest-client
2020.925
2020.807
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 theHeaders
class
2020.803
Added a new publicly visible method, ApiRequest.Build()
that can be used to convert a request into a HttpRequestMessage
2020.802
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
See 2020.730 release for details
2020.730 (beta)
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-fabricatedHttpRequestMessage
- Add a handler wrapper for redirecting and keeping the auth header
- Removes ~60% duplicated code
2020.714.1
Includes further fixes for the HeaderPreservingRedirectHandler
2020.714
Adds a new HeaderPreservingRedirectHandler
for edge-cases involving lost headers when redirecting to the same host.
2020.711.3
Changes:
- Changed conversion of
bool
to always return in lowercase (true
andfalse
) - Added
FileServices.GetFileOrDefault<T>(string location);