Table of Contents

HttpHeadAsync Method

Definition

Namespace
Cuemon.Extensions.Net.Http
Assemblies
Cuemon.Extensions.Net.dll
Source
src/Cuemon.Extensions.Net/Http/UriExtensions.cs

HttpHeadAsync(Uri, CancellationToken)

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

public static Task<HttpResponseMessage> HttpHeadAsync(this Uri location, CancellationToken ct = default)

Parameters

location Uri

The Uri to extend.

ct CancellationToken

The cancellation token to cancel operation.

Returns

Task<HttpResponseMessage>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

location cannot be null.