Language

IncomingFile.StreamAsync(CancellationToken) Method

Definition

Stream the bytes. Low-level primitive: returns the response body stream directly, single-consumption, not buffered or retained. Use for large files and pipelines (parse-as-you-go, pipe to disk). DownloadAsync(CancellationToken) is built on this. Uncapped: the consumer bounds it by how much it reads. Dispose the returned stream to release the underlying connection.

public System.Threading.Tasks.Task<System.IO.Stream> StreamAsync(System.Threading.CancellationToken cancellationToken = default);
member this.StreamAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Public Function StreamAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

Parameters

cancellationToken
CancellationToken

A token to cancel opening the stream.

Returns

Applies to