-api-id | -api-type |
---|---|
M:Windows.Web.Http.HttpClient.GetInputStreamAsync(Windows.Foundation.Uri) |
winrt method |
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.
The Uri the request is sent to.
The object representing the asynchronous operation.
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.
The uri parameter was a null reference (Nothing in Visual Basic).