HttpBaseProtocolFilter.SendRequestAsync(HttpRequestMessage) HttpBaseProtocolFilter.SendRequestAsync(HttpRequestMessage) HttpBaseProtocolFilter.SendRequestAsync(HttpRequestMessage) HttpBaseProtocolFilter.SendRequestAsync(HttpRequestMessage) HttpBaseProtocolFilter.SendRequestAsync(HttpRequestMessage) Method

Definition

Send an HTTP request using the HttpBaseProtocolFilter as an asynchronous operation.

public : IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress> SendRequestAsync(HttpRequestMessage request)
IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress> SendRequestAsync(HttpRequestMessage request) const;
public IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress> SendRequestAsync(HttpRequestMessage request)
Public Function SendRequestAsync(request As HttpRequestMessage) As IAsyncOperationWithProgress(Of HttpResponseMessageHttpProgress)
Windows.Web.Http.Filters.HttpBaseProtocolFilter.sendRequestAsync(request).done( /* Your success and error handlers */ );

Parameters

request
HttpRequestMessage HttpRequestMessage HttpRequestMessage

The HTTP request message to send.

Returns

Remarks

This operation will not block. The returned IAsyncOperationWithProgress(HttpResponseMessage, HttpProgress) object will complete once the entire HTTP response message is received.

Below are exceptions that this function throws.

E_INVALIDARG

The request parameter was a null reference (Nothing in Visual Basic).

E_ILLEGAL_METHOD_CALL

The request message was already sent by the HttpBaseProtocolFilter instance.