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.​HttpMessageInvoker

Assembly: System.Net.Http

Inheritance: object → HttpMessageInvoker

Implemented Interfaces

A specialty class that allows applications to call the <see cref="M:System.Net.Http.HttpMessageInvoker.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method on an HTTP handler chain.

Methods

public void
Dispose​()
Releases the unmanaged resources and disposes of the managed resources used by the <see cref="T:System.Net.Http.HttpMessageInvoker" /> .
protected void
Dispose​(bool disposing)
Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpMessageInvoker" /> 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.
Send​(HttpRequestMessage request, Threading.​CancellationToken cancellationToken)
Sends an HTTP request with the specified request and cancellation token.
Returns The HTTP response message.
request The HTTP request message to send.
cancellationToken The cancellation token to cancel operation.
SendAsync​(HttpRequestMessage request, Threading.​CancellationToken cancellationToken)
Send an HTTP request as an asynchronous operation.
Returns The task object representing the asynchronous operation.
request The HTTP request message to send.
cancellationToken The cancellation token to cancel operation.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object