Skip to content

Releases: skybrud/Skybrud.Essentials.Http

Skybrud.Essentials.Http v1.0.16

15 Feb 18:14
Compare
Choose a tag to compare

Installation

Changelog

  • Added more ParseJson... and TryParseJson... to the HttpResponseBase class (see ba0bd72)
    This release adds additional protected static methods to the HttpResponseBase class which may now be used for parsing JSON classes extending HttpResponseBase.

  • 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

29 Dec 19:57
Compare
Choose a tag to compare

Installation

Changelog

  • Added new GetResponse method overloads to IHttpClient and HttpClient (see fd620c4)
    The overloads takes an instance of IHttpRequest as it's only parameter, and then returns the IHttpResponse 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

11 Dec 19:31
Compare
Choose a tag to compare

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 the IHttpRequest 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

16 Feb 16:24
Compare
Choose a tag to compare

Installation

Changelog

  • Content type should default to application/json when request body is JToken (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 the HttpRequest class have now also been updated to do this.

  • Added static methods for more HTTP verbs (see 7981140).
    The HttpRequest 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

19 Dec 20:56
Compare
Choose a tag to compare

Installation

Changelog

  • Implemented new Clone method in the HttpQueryString class (see e7a27e9).
    The new Clone method will return a new copy with the values of the original HttpQueryString.

  • Implemented new Remove method in the HttpQueryString class (see e7a27e9).
    Earlier releases had no way of removing a given key from the query string. With the introduction of the Remove method, this is now possible.

  • Implemented new GetResponse method in the HttpClient class (see 52c9f85)
    THe IHttpRequestOptions interface has been available for a few releases, and lets developers describe a request via the GetRequest method. In combination with this interface, the GetResponse method returns the IHttpResponse for the request described by an instance of IHttpRequestOptions.

Skybrud.Essentials.Http v1.0.11

04 Dec 20:54
Compare
Choose a tag to compare

Installation

Changelog

  • Introduced new IHttpRequestOptions interface (see bbb1c05).
    The new interface describes the GetRequest method, which returns an instance of IHttpRequest. The interface serves as an alternative to the existing IHttpGetOptions and IHttpPostOptions interfaces.

Skybrud.Essentials.Http v1.0.10

09 Nov 12:55
Compare
Choose a tag to compare

Installation

Changelog

  • Made the IHttpException interface public (see ff811ee).
    The IHttpException interface introduced in v1.0.9 should be public instead of private so it can actually be used by other packages.

Skybrud.Essentials.Http v1.0.9

09 Nov 12:40
Compare
Choose a tag to compare

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

12 Sep 12:08
Compare
Choose a tag to compare

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

07 Sep 15:09
Compare
Choose a tag to compare

Installation

Changelog

  • Added Post method overload to the HttpRequest class (see d157930).
    The added method overload only takes a URL as a parameter, so it serves a supplement to the existing Post overloads.

  • Shorter method in the HttpClient class (see 4f249e4)
    Added new Get, Post, Put, Patch and Delete methods as replacements for the DoHttpGetRequest, DoHttpPostRequest, DoHttpPutRequest, DoHttpPatchRequest and DoHttpDeleteRequest 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 the HttpUtils.Requests utility class, which should therefore be used instead.