Releases: skybrud/Skybrud.Essentials.Http
v1.0.18
Installation
Changelog
- Updated the
Skybrud.Essentials
dependency (see 5033a6f)
The dependency has now been bumped fromv1.1.36
tov1.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 methodsIHttpQueryString
for attempting to get values in different types - eg.TryGetBoolean
,TryGetInt32
and similar. -
Added null checks to the
HttpQueryString.Add
andHttpQueryString.Set
methods (see c9fc87f)
The methods now properly handle when being passed a null value. -
Added
Parse
methods to theHttpQueryString
class, obsoleting the existingParseQueryString
methods (see fc3b31d)
HavingQueryString
in the method names feels a bit redundant, so the twoParseQueryString
methods have now been marked as obsolete, and twoParse
methods have been added to replace them. -
Added
TryParse
methods to theHttpQueryString
class (see 924dbdb)
As theParse
methods may fail if passed an invalid string representation of a query string, so the twoTryParse
methods in this release encapsulates any error handling should the parsing fail.
Skybrud.Essentials.Http v1.0.16
Installation
Changelog
-
Added more
ParseJson...
andTryParseJson...
to theHttpResponseBase
class (see ba0bd72)
This release adds additional protected static methods to theHttpResponseBase
class 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
GetResponse
method overloads toIHttpClient
andHttpClient
(see fd620c4)
The overloads takes an instance ofIHttpRequest
as it's only parameter, and then returns theIHttpResponse
from 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
IHttpRequest
through method chaining (see f1e9813).
The package already supports a few different ways for working with theIHttpRequest
interface 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/json
when 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 theHttpRequest
class have now also been updated to do this. -
Added static methods for more HTTP verbs (see 7981140).
TheHttpRequest
class 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
Clone
method in theHttpQueryString
class (see e7a27e9).
The newClone
method will return a new copy with the values of the originalHttpQueryString
. -
Implemented new
Remove
method in theHttpQueryString
class (see e7a27e9).
Earlier releases had no way of removing a given key from the query string. With the introduction of theRemove
method, this is now possible. -
Implemented new
GetResponse
method in theHttpClient
class (see 52c9f85)
THeIHttpRequestOptions
interface has been available for a few releases, and lets developers describe a request via theGetRequest
method. In combination with this interface, theGetResponse
method returns theIHttpResponse
for the request described by an instance ofIHttpRequestOptions
.
Skybrud.Essentials.Http v1.0.11
Installation
Changelog
- Introduced new
IHttpRequestOptions
interface (see bbb1c05).
The new interface describes theGetRequest
method, which returns an instance ofIHttpRequest
. The interface serves as an alternative to the existingIHttpGetOptions
andIHttpPostOptions
interfaces.
Skybrud.Essentials.Http v1.0.10
Installation
Changelog
- Made the
IHttpException
interface public (see ff811ee).
TheIHttpException
interface introduced inv1.0.9
should be public instead of private so it can actually be used by other packages.
Skybrud.Essentials.Http v1.0.9
Installation
Changelog
- Introduced new
IHttpException
interface (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.