Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Net.​Http.​HttpRequestMessage
Assembly: System.Net.Http
Inheritance: object → HttpRequestMessage
Implemented Interfaces
Represents a HTTP request message.
Properties
public
HttpContent
Content
Gets or sets the contents of the HTTP message.
public
HttpRequestHeaders
Headers
Gets the collection of HTTP request headers.
public
HttpMethod
Method
Gets or sets the HTTP method used by the HTTP request message.
public
HttpRequestOptions
Options
Gets the collection of options to configure the HTTP request.
public
Collections.​Generic.​IDictionary<​string, object>
Properties
Gets a set of properties for the HTTP request.
public
Uri
RequestUri
Gets or sets the <see cref="T:System.Uri" /> used for the HTTP request.
public
Version
Version
Gets or sets the HTTP message version.
public
HttpVersionPolicy
VersionPolicy
Gets or sets the policy that determines how <see cref="System.Net.Http.HttpRequestMessage.Version" /> is interpreted and how the final HTTP version is negotiated with the server.
Methods
public
void
Dispose​()
Releases the unmanaged resources and disposes of the managed resources used by the <see cref="T:System.Net.Http.HttpRequestMessage" /> .
protected
void
Dispose​(bool disposing)
Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpRequestMessage" /> and optionally disposes of the managed resources.
disposing
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to releases only unmanaged resources.
public
string
ToString​()
Returns a string that represents the current object.
Returns A string representation of the current object.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object