Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.51 KB

httpclient_getinputstreamasync_1910746187.md

File metadata and controls

34 lines (23 loc) · 1.51 KB
-api-id -api-type
M:Windows.Web.Http.HttpClient.GetInputStreamAsync(Windows.Foundation.Uri)
winrt method

Windows.Web.Http.HttpClient.GetInputStreamAsync

-description

Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation. For programming guidance for the HttpClient class, and code examples, see the HttpClient conceptual topic.

-parameters

-param uri

The Uri the request is sent to.

-returns

The object representing the asynchronous operation.

-remarks

This operation will not block. The returned IAsyncOperationWithProgress (of IInputStream and HttpProgress) completes after the whole response body is read. This method does not buffer the stream, so this method can support long streams of arbitrary length.

Below are the exceptions that this function throws.

E_INVALIDARG

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

-examples

-see-also

Uri, HttpClient