BarbezDotEu.Http
2.4.2
Prefix Reserved
dotnet add package BarbezDotEu.Http --version 2.4.2
NuGet\Install-Package BarbezDotEu.Http -Version 2.4.2
<PackageReference Include="BarbezDotEu.Http" Version="2.4.2" />
paket add BarbezDotEu.Http --version 2.4.2
#r "nuget: BarbezDotEu.Http, 2.4.2"
// Install BarbezDotEu.Http as a Cake Addin #addin nuget:?package=BarbezDotEu.Http&version=2.4.2 // Install BarbezDotEu.Http as a Cake Tool #tool nuget:?package=BarbezDotEu.Http&version=2.4.2
BarbezDotEu.Http
Generic features related to HTTP and HTTPS. Contains extensions to HttpContent, and cloning an HttpRequestMessage via the HttpRequestMessageCloner.
Contents
<a name='T-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection'></a>
EdgeMockingRequestHeaderCollection type
Namespace
BarbezDotEu.Http
Summary
Mocks headers that would've been sent typically by Microsoft Edge during the first half of 2021.
<a name='M-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-#ctor-System-String,System-String-'></a>
#ctor(referrer,host) constructor
Summary
Constructs a new EdgeMockingRequestHeaderCollection.
Parameters
Name | Type | Description |
---|---|---|
referrer | System.String | The referrer to set. |
host | System.String | The value to set for the host header. Defaults to the domain of the referrer, if none provided. |
<a name='F-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-UserAgent'></a>
UserAgent constants
Summary
Gets an Edge style user agent header.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-AcceptHeaders'></a>
AcceptHeaders property
Summary
Gets Edge style accept headers.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-AcceptLanguage'></a>
AcceptLanguage property
Summary
Gets an Edge style accept header.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-CacheControl'></a>
CacheControl property
Summary
Gets an Edge style cache-control header.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-Connection'></a>
Connection property
Summary
Gets an Edge style connection header.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-Host'></a>
Host property
Summary
Gets the hostname.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-Others'></a>
Others property
Summary
Gets a collection of non-standard headers, including:
- Edge style do-not-track header;
- Edge style sec-fetch-site header;
- Edge style sec-fetch-mode header;
- Edge style sec-fetch-dest header.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-Pragma'></a>
Pragma property
Summary
Gets an Edge style pragma header.
<a name='P-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-Referrer'></a>
Referrer property
Summary
Gets an Edge style referrer header.
<a name='M-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-DetermineAndSetHost-System-String-'></a>
DetermineAndSetHost(host) method
Summary
Determines and sets the value of the host header. Defaults to the domain of the referrer, if no meaningful host name is provided.
Parameters
Name | Type | Description |
---|---|---|
host | System.String |
<a name='M-BarbezDotEu-Http-EdgeMockingRequestHeaderCollection-Prep-System-Net-Http-HttpRequestMessage-'></a>
Prep(httpRequestMessage) method
Summary
Prepares a given HttpRequestMessage with headers sent typically by Microsoft Edge during the first half of 2021.
Parameters
Name | Type | Description |
---|---|---|
httpRequestMessage | System.Net.Http.HttpRequestMessage | The HttpRequestMessage to adjust. |
<a name='T-BarbezDotEu-Http-HttpRequestMessageCloner'></a>
HttpRequestMessageCloner type
Namespace
BarbezDotEu.Http
Summary
Helper class for cloning HttpRequestMessages.
<a name='M-BarbezDotEu-Http-HttpRequestMessageCloner-Clone-System-Net-Http-HttpRequestMessage-'></a>
Clone() method
Summary
Clones a given HttpRequestMessage.
Parameters
This method has no parameters.
Remarks
Using this method helps avoiding a "The request message was already sent. Cannot send the same request message multiple times." InvalidOperationException.
<a name='M-BarbezDotEu-Http-HttpRequestMessageCloner-Clone-System-Net-Http-HttpContent-'></a>
Clone() method
Summary
Clones given HttpContent.
Parameters
This method has no parameters.
<a name='T-BarbezDotEu-Http-HttpUriExtensions'></a>
HttpUriExtensions type
Namespace
BarbezDotEu.Http
Summary
Misc. extensions pertaining to HTTP and URI
<a name='M-BarbezDotEu-Http-HttpUriExtensions-GetAsHttpUri-System-String-'></a>
GetAsHttpUri(uri) method
Summary
Gets a string representing an HTTP URI and returns it as an actual HTTP Uri.
Returns
An HTTP Uri.
Parameters
Name | Type | Description |
---|---|---|
uri | System.String | The implicit HTTP URI. |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BarbezDotEu.Http:
Package | Downloads |
---|---|
BarbezDotEu.Provider
A non-exhaustive, yet useful HTTP(S) JSON client that supports rate limiting, enabling you to implement a polite integration with a third-party data provider. |
GitHub repositories
This package is not used by any popular GitHub repositories.