Releases: skybrud/Skybrud.Essentials.Http
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.
Skybrud.Essentials.Http v1.0.6
Installation
Changelog
-
Updated an issue with setting the content type of POST requests via the
HttpRequest
class (see 094eefd).
The content type would in some cases automatically be overwritten by the internal logic in theHttpRequest
. With this release, the internal logic will no longer set the content type if one has already been specified. -
Added constructor overloads and extra static methods to allow easier initialization of the
HttpRequest
class (see 0a2ed4c and 941e8d9).
TheHttpRequest
now has a number of new constructor overloads allowing developers to specify options such as the HTTP method and URL directly in the constructor instead of having to populate the corresponding properties after the instance has been created. -
The
IHttpRequest
interface should have the same properties as theHttpRequest
class (see 5f35656)
Technically this is a breaking change 💣, but only if you have your own classes implementing theIHttpResponse
interface.
Skybrud.Essentials.Http v1.0.5
Installation
Changelog
- The
ResponseUri
property from theHttpWebResponse
class is now exposed via theIHttpResponse
interface (see 5f35656)
Technically this is a breaking change 💣, but only if you have your own classes implementing theIHttpResponse
interface.
Skybrud.Essentials.Http v1.0.4
Skybrud.Essentials.Http v1.0.3
Installation
Changelog
-
Using
Uri.EscapeDataString
is more correct to encode form data (see 06a9ff8)
The old code usedStringUtils.UrlEncode
, which is just a wrapper for eitherHttpUtility.UrlEncode
orWebUtility.UrlEncode
depending on the target framework. TheUrlEncode
methods are not sufficient for encoding form data.The fix was to replace
StringUtils.UrlEncode
withUri.EscapeDataString
, as the latter properly handles encoding form data.
Skybrud.Essentials.Http v1.0.2
Installation
Changelog
- Fixed an issue with incorrect request body length due to multi-byte characters. As some characters may take up more than one byte, the length of
Encoding.UTF8.GetBytes(Body)
andBody.Length
could differ, causing the request code to fail (see f0561ab).