HttpClient.GetInputStreamAsync(Uri) HttpClient.GetInputStreamAsync(Uri) HttpClient.GetInputStreamAsync(Uri) HttpClient.GetInputStreamAsync(Uri) HttpClient.GetInputStreamAsync(Uri) Method

Definition

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.

public : IAsyncOperationWithProgress<IInputStream, HttpProgress> GetInputStreamAsync(Uri uri)
IAsyncOperationWithProgress<IInputStream, HttpProgress> GetInputStreamAsync(Uri uri) const;
public IAsyncOperationWithProgress<IInputStream, HttpProgress> GetInputStreamAsync(Uri uri)
Public Function GetInputStreamAsync(uri As Uri) As IAsyncOperationWithProgress(Of IInputStreamHttpProgress)
Windows.Web.Http.HttpClient.getInputStreamAsync(uri).done( /* Your success and error handlers */ );

Parameters

uri
Uri Uri Uri

The Uri the request is sent to.

Returns

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).

See also