StreamContent Class

StreamContent class

Represents content based on a stream.

public class StreamContent : Content

Constructors

NameDescription
StreamContent(Stream)Initializes a new instance of the StreamContent class.

Properties

NameDescription
getHeaders Gets the HTTP content headers.

Methods

NameDescription
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
readAsByteArray()Serialize the HTTP content and return a byte array that represents the content.
readAsStream()Serialize the HTTP content and return a stream that represents the content.
readAsString()Serialize the HTTP content and return a String that represents the content.

See Also