HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method SendAsync

    SendAsync(HttpRequestMessage, CancellationToken)

    Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

    Declaration
    protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    HttpRequestMessage request

    The HTTP request message to send to the server.

    CancellationToken cancellationToken

    A cancellation token to cancel operation.

    Returns
    Type Description
    Task<HttpResponseMessage>

    The task object representing the asynchronous operation.

    Overrides
    DelegatingHandler.SendAsync(HttpRequestMessage, CancellationToken)
    Exceptions
    Type Condition
    ArgumentNullException

    The request was null.

    OperationCanceledException

    The cancellation token was canceled. This exception is stored into the returned task.

    © Singulink. All rights reserved.