Class HttpClientHandlerWithCookies
public class HttpClientHandlerWithCookies : HttpClientHandler, IDisposable
- Inheritance
-
objectHttpClientHandlerWithCookies
- Implements
- Inherited Members
Constructors
HttpClientHandlerWithCookies(AuthenticationStateProvider)
public HttpClientHandlerWithCookies(AuthenticationStateProvider authStateProvider)
Parameters
authStateProvider
AuthenticationStateProvider
Properties
IncludeMode
public BrowserRequestCredentials IncludeMode { get; set; }
Property Value
Methods
SendAsync(HttpRequestMessage, CancellationToken)
Creates an instance of HttpResponseMessage based on the information provided in the HttpRequestMessage as an operation that will not block.
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
request
HttpRequestMessageThe HTTP request message.
cancellationToken
CancellationTokenA cancellation token to cancel the operation.
Returns
- Task<HttpResponseMessage>
The task object representing the asynchronous operation.
Exceptions
- ArgumentNullException
The
request
was null.- OperationCanceledException
The cancellation token was canceled. This exception is stored into the returned task.