Skip to content

Releases: skybrud/Skybrud.Essentials.Http

v1.0.18

25 Mar 16:30
Compare
Choose a tag to compare

Installation

Changelog

v1.0.17

24 Mar 21:57
Compare
Choose a tag to compare

Installation

Changelog

  • Introduced new TryGet{Type} extension methods for IHttpQueryString (see #1 and 5d28f87)
    This release introduces a number of extension methods IHttpQueryString for attempting to get values in different types - eg. TryGetBoolean, TryGetInt32and similar.

  • Added null checks to the HttpQueryString.Add and HttpQueryString.Set methods (see c9fc87f)
    The methods now properly handle when being passed a null value.

  • Added Parse methods to the HttpQueryString class, obsoleting the existing ParseQueryString methods (see fc3b31d)
    Having QueryString in the method names feels a bit redundant, so the two ParseQueryString methods have now been marked as obsolete, and two Parse methods have been added to replace them.

  • Added TryParse methods to the HttpQueryString class (see 924dbdb)
    As the Parse methods may fail if passed an invalid string representation of a query string, so the two TryParse methods in this release encapsulates any error handling should the parsing fail.

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.