HttpMessageInvoker Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

A specialty class that allows applications to call the SendAsync method on an Http handler chain.

Namespace:   System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

System.Object
  System.Net.Http.HttpMessageInvoker
    System.Net.Http.HttpClient

public class HttpMessageInvoker : IDisposable

NameDescription
System_CAPS_pubmethodHttpMessageInvoker(HttpMessageHandler)

Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

System_CAPS_pubmethodHttpMessageInvoker(HttpMessageHandler, Boolean)

Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

NameDescription
System_CAPS_pubmethodDispose()

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

System_CAPS_protmethodDispose(Boolean)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSendAsync(HttpRequestMessage, CancellationToken)

Send an HTTP request as an asynchronous operation.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

This class is the base type for HttpClient and other message originators.

Most applications that are connecting to a web site will use one of the SendAsync methods on the HttpClient class.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: