<PackageReference Include="Microsoft.Net.Http" Version="2.2.19" />

System.Net.Http.HttpRequestMessage

Represents a HTTP request message.
public HttpContent Content { get; set; }

Gets or sets the contents of the HTTP message.

public HttpRequestHeaders Headers { get; }

Gets the collection of HTTP request headers.

public HttpMethod Method { get; set; }

Gets or sets the HTTP method used by the HTTP request message.

public IDictionary<string, object> Properties { get; }

Gets a set of properties for the HTTP request.

public Uri RequestUri { get; set; }

Gets or sets the Uri used for the HTTP request.

public Version Version { get; set; }

Gets or sets the HTTP message version.

Initializes a new instance of the HttpRequestMessage class.

public HttpRequestMessage(HttpMethod method, Uri requestUri)

Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri.

public HttpRequestMessage(HttpMethod method, string requestUri)

Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the HttpRequestMessage and optionally disposes of the managed resources.

public void Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestMessage.