HttpStreamContent HttpStreamContent HttpStreamContent HttpStreamContent HttpStreamContent Class

Definition

Provides HTTP content that uses a stream.

public : sealed class HttpStreamContent : IClosable, IStringable, IHttpContent
struct winrt::Windows::Web::Http::HttpStreamContent : IClosable, IStringable, IHttpContent
public sealed class HttpStreamContent : IDisposable, IStringable, IHttpContent
Public NotInheritable Class HttpStreamContent Implements IDisposable, IStringable, IHttpContent
var httpStreamContent = new httpStreamContent(content);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

HttpStreamContent(IInputStream) HttpStreamContent(IInputStream) HttpStreamContent(IInputStream) HttpStreamContent(IInputStream) HttpStreamContent(IInputStream)

Initializes a new instance of the HttpStreamContent class with the specified content.

Properties

Headers Headers Headers Headers Headers

Get a collection of content headers set on the HttpStreamContent.

Methods

BufferAllAsync() BufferAllAsync() BufferAllAsync() BufferAllAsync() BufferAllAsync()

Serialize the HttpStreamContent into memory as an asynchronous operation.

Close() Close() Close() Close() Close()

Closes the HttpStreamContent instance and releases allocated resources.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReadAsBufferAsync() ReadAsBufferAsync() ReadAsBufferAsync() ReadAsBufferAsync() ReadAsBufferAsync()

Serialize the HttpStreamContent to a buffer as an asynchronous operation.

ReadAsInputStreamAsync() ReadAsInputStreamAsync() ReadAsInputStreamAsync() ReadAsInputStreamAsync() ReadAsInputStreamAsync()

Serialize the HttpStreamContent and return an input stream that represents the content as an asynchronous operation.

ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync() ReadAsStringAsync()

Serialize the HttpStreamContent to a String as an asynchronous operation.

ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpStreamContent object.

TryComputeLength(UInt64) TryComputeLength(UInt64) TryComputeLength(UInt64) TryComputeLength(UInt64) TryComputeLength(UInt64)

Determines whether the HttpStreamContent has a valid length in bytes.

WriteToStreamAsync(IOutputStream) WriteToStreamAsync(IOutputStream) WriteToStreamAsync(IOutputStream) WriteToStreamAsync(IOutputStream) WriteToStreamAsync(IOutputStream)

Write the HttpStreamContent to an output stream as an asynchronous operation.

See Also