HttpClient Methods

.NET Framework (current version)
 

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

NameDescription
System_CAPS_pubmethodCancelPendingRequests()

Cancel all pending requests on this instance.

System_CAPS_pubmethodDeleteAsync(String)

Send a DELETE request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodDeleteAsync(String, CancellationToken)

Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodDeleteAsync(Uri)

Send a DELETE request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodDeleteAsync(Uri, CancellationToken)

Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodDispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageInvoker.(Inherited from HttpMessageInvoker.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the HttpClient and optionally disposes of the managed resources.(Overrides HttpMessageInvoker.Dispose(Boolean).)

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_pubmethodGetAsync(String)

Send a GET request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodGetAsync(String, CancellationToken)

Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodGetAsync(String, HttpCompletionOption)

Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.

System_CAPS_pubmethodGetAsync(String, HttpCompletionOption, CancellationToken)

Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.

System_CAPS_pubmethodGetAsync(Uri)

Send a GET request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodGetAsync(Uri, CancellationToken)

Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodGetAsync(Uri, HttpCompletionOption)

Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.

System_CAPS_pubmethodGetAsync(Uri, HttpCompletionOption, CancellationToken)

Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.

System_CAPS_pubmethodGetByteArrayAsync(String)

Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.

System_CAPS_pubmethodGetByteArrayAsync(Uri)

Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetStreamAsync(String)

Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.

System_CAPS_pubmethodGetStreamAsync(Uri)

Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.

System_CAPS_pubmethodGetStringAsync(String)

Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.

System_CAPS_pubmethodGetStringAsync(Uri)

Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.

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_pubmethodPostAsync(String, HttpContent)

Send a POST request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodPostAsync(String, HttpContent, CancellationToken)

Send a POST request with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodPostAsync(Uri, HttpContent)

Send a POST request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodPostAsync(Uri, HttpContent, CancellationToken)

Send a POST request with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodPutAsync(String, HttpContent)

Send a PUT request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodPutAsync(String, HttpContent, CancellationToken)

Send a PUT request with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodPutAsync(Uri, HttpContent)

Send a PUT request to the specified Uri as an asynchronous operation.

System_CAPS_pubmethodPutAsync(Uri, HttpContent, CancellationToken)

Send a PUT request with a cancellation token as an asynchronous operation.

System_CAPS_pubmethodSendAsync(HttpRequestMessage)

Send an HTTP request as an asynchronous operation.

System_CAPS_pubmethodSendAsync(HttpRequestMessage, CancellationToken)

Send an HTTP request as an asynchronous operation.(Overrides HttpMessageInvoker.SendAsync(HttpRequestMessage, CancellationToken).)

System_CAPS_pubmethodSendAsync(HttpRequestMessage, HttpCompletionOption)

Send an HTTP request as an asynchronous operation.

System_CAPS_pubmethodSendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)

Send an HTTP request as an asynchronous operation.

System_CAPS_pubmethodToString()

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

Return to top
Show: