Releases: skybrud/Skybrud.Essentials.Http
v1.0.18
Installation
Changelog
- Updated the
Skybrud.Essentialsdependency (see 5033a6f)
The dependency has now been bumped fromv1.1.36tov1.1.38.
v1.0.17
Installation
Changelog
-
Introduced new
TryGet{Type}extension methods forIHttpQueryString(see #1 and 5d28f87)
This release introduces a number of extension methodsIHttpQueryStringfor attempting to get values in different types - eg.TryGetBoolean,TryGetInt32and similar. -
Added null checks to the
HttpQueryString.AddandHttpQueryString.Setmethods (see c9fc87f)
The methods now properly handle when being passed a null value. -
Added
Parsemethods to theHttpQueryStringclass, obsoleting the existingParseQueryStringmethods (see fc3b31d)
HavingQueryStringin the method names feels a bit redundant, so the twoParseQueryStringmethods have now been marked as obsolete, and twoParsemethods have been added to replace them. -
Added
TryParsemethods to theHttpQueryStringclass (see 924dbdb)
As theParsemethods may fail if passed an invalid string representation of a query string, so the twoTryParsemethods in this release encapsulates any error handling should the parsing fail.
Skybrud.Essentials.Http v1.0.16
Installation
Changelog
-
Added more
ParseJson...andTryParseJson...to theHttpResponseBaseclass (see ba0bd72)
This release adds additional protected static methods to theHttpResponseBaseclass which may now be used for parsing JSON classes extendingHttpResponseBase. -
Updated Skybrud.Essentials dependency (see b90b4d7)
The dependency for Skybrud.Essentials has now been updated to the latest version.
Skybrud.Essentials.Http v1.0.15
Installation
Changelog
-
Added new
GetResponsemethod overloads toIHttpClientandHttpClient(see fd620c4)
The overloads takes an instance ofIHttpRequestas it's only parameter, and then returns theIHttpResponsefrom the generated request. -
Updated Skybrud.Essentials dependency (see 31c3609)
The dependency for Skybrud.Essentials has now been updated to the latest version.
Skybrud.Essentials.Http v1.0.14
Installation
Changelog
-
Introduced new extension methods for working with
IHttpRequestthrough method chaining (see f1e9813).
The package already supports a few different ways for working with theIHttpRequestinterface and related classes. This release introduces a number of extension methods, that can be used through method chaining. -
Updated Skybrud.Essentials dependency (see 96c4c66)
The dependency for Skybrud.Essentials has now been updated to the latest version.
Skybrud.Essentials.Http v1.0.13
Installation
Changelog
-
Content type should default to
application/jsonwhen request body isJToken(see 534aa86).
Some APIs will fail if the content type isn't explicitly specified. Some parts of the package already did set the content type for JSON requests, but the static initializers in theHttpRequestclass have now also been updated to do this. -
Added static methods for more HTTP verbs (see 7981140).
TheHttpRequestclass contains static methods for initializing a new request from a number of different parameters, but it only supported the GET and POST verbs. PUT, PATCH and DELETE verbs are now supported as well.
Skybrud.Essentials.Http v1.0.12
Installation
Changelog
-
Implemented new
Clonemethod in theHttpQueryStringclass (see e7a27e9).
The newClonemethod will return a new copy with the values of the originalHttpQueryString. -
Implemented new
Removemethod in theHttpQueryStringclass (see e7a27e9).
Earlier releases had no way of removing a given key from the query string. With the introduction of theRemovemethod, this is now possible. -
Implemented new
GetResponsemethod in theHttpClientclass (see 52c9f85)
THeIHttpRequestOptionsinterface has been available for a few releases, and lets developers describe a request via theGetRequestmethod. In combination with this interface, theGetResponsemethod returns theIHttpResponsefor the request described by an instance ofIHttpRequestOptions.
Skybrud.Essentials.Http v1.0.11
Installation
Changelog
- Introduced new
IHttpRequestOptionsinterface (see bbb1c05).
The new interface describes theGetRequestmethod, which returns an instance ofIHttpRequest. The interface serves as an alternative to the existingIHttpGetOptionsandIHttpPostOptionsinterfaces.
Skybrud.Essentials.Http v1.0.10
Installation
Changelog
- Made the
IHttpExceptioninterface public (see ff811ee).
TheIHttpExceptioninterface introduced inv1.0.9should be public instead of private so it can actually be used by other packages.
Skybrud.Essentials.Http v1.0.9
Installation
Changelog
- Introduced new
IHttpExceptioninterface (see 3f6d41c).
The interface isn't used directly in the package, but it will allow different implements to implement a common interface describing an HTTP error.