BarbezDotEu.Http 2.4.2

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package BarbezDotEu.Http --version 2.4.2
NuGet\Install-Package BarbezDotEu.Http -Version 2.4.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BarbezDotEu.Http" Version="2.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BarbezDotEu.Http --version 2.4.2
#r "nuget: BarbezDotEu.Http, 2.4.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on BarbezDotEu.Http:

Package Downloads
BarbezDotEu.Provider The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.

Version Downloads Last updated
2.4.2 0 4/25/2024
2.4.1 413 11/21/2023
2.4.0 222 11/18/2023
2.3.0 411 2/3/2023
2.2.0 256 2/3/2023
2.1.1 5,437 1/8/2022
2.1.0 350 1/8/2022
2.0.0 529 12/2/2021
1.0.0 1,817 5/7/2021