Releases: skybrud/Skybrud.Essentials.Http
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.
Skybrud.Essentials.Http v1.0.8
Installation
Changelog
-
Fixed issue with OAuth 1.0a header string generation (see 21e5d11).
A line that shouldn't have been removed was accidentally removed during some code cleanup, which then resulted in OAuth 1.0a header string not being generated properly.With this release, the line is now back, and the header string is being generated correctly. I've also added a new unit test project with a test to verify this - and make sure it doesn't happen again.
Skybrud.Essentials.Http v1.0.7
Installation
Changelog
-
Added
Post
method overload to theHttpRequest
class (see d157930).
The added method overload only takes a URL as a parameter, so it serves a supplement to the existingPost
overloads. -
Shorter method in the
HttpClient
class (see 4f249e4)
Added newGet
,Post
,Put
,Patch
andDelete
methods as replacements for theDoHttpGetRequest
,DoHttpPostRequest
,DoHttpPutRequest
,DoHttpPatchRequest
andDoHttpDeleteRequest
methods. The existing methods have been marked as obsolete, suggestion that the new and shorter method names should be used instead. -
Marked the
HttpUtils.Http
utility class as obsolete (see 0e04b43)
Similar logic exists in theHttpUtils.Requests
utility class, which should therefore be used instead.