Click or drag to resize
GDHttpProtocolFilterSendRequestAsync Method
Send a HTTP request using the GDHttpProtocolFilter as an asynchronous operation.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress> SendRequestAsync(
	HttpRequestMessage request
)

Parameters

request
Type: Windows.Web.HttpHttpRequestMessage
The HTTP request message to send.

Return Value

Type: IAsyncOperationWithProgressHttpResponseMessage, HttpProgress
The object representing the asynchronous operation.

Implements

IHttpFilterSendRequestAsync(HttpRequestMessage)
Exceptions
ExceptionCondition
Exception

A number of exceptions can occur when calling this method. Only a few of the possible errors that can cause exceptions are listed.

You must write code to handle exceptions when you call this method. Exceptions can result from parameter validation errors, name resolutions failures, and network errors. Exceptions from network errors (loss of connectivity, connection failures, and HTTP server failures, for example) can happen at any time. These errors result in exceptions being thrown. If not handled by your app, an exception can cause your entire app to be terminated by the runtime.

An app can use the HRESULT from the exception to learn more detailed information on the error that caused the exception.

ExceptionCondition
E_INVALIDARGThe request parameter was a null reference.
E_ILLEGAL_METHOD_CALLThe request message was already sent by the GDHttpProtocolFilter instance.
Remarks
This operation will not block. The returned IAsyncOperationWithProgress object will complete once the entire HTTP response message is received.
See Also