Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables scenarios where a data producer wants to write directly (either synchronously or asynchronously) using a stream.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Inheritance Hierarchy
System.Object
System.Net.Http.HttpContent
System.Net.Http.PushStreamContent
Syntax
public class PushStreamContent : HttpContent
public ref class PushStreamContent : HttpContent
type PushStreamContent =
class
inherit HttpContent
end
Public Class PushStreamContent
Inherits HttpContent
Constructors
Name | Description | |
---|---|---|
![]() |
PushStreamContent(Action<Stream, HttpContent, TransportContext>) | Initializes a new instance of the PushStreamContent class. |
![]() |
PushStreamContent(Action<Stream, HttpContent, TransportContext>, MediaTypeHeaderValue) | Initializes a new instance of the PushStreamContent class. |
![]() |
PushStreamContent(Action<Stream, HttpContent, TransportContext>, String) | Initializes a new instance of the PushStreamContent class. |
![]() |
PushStreamContent(Func<Stream, HttpContent, TransportContext, Task>) | Initializes a new instance of the PushStreamContent class. |
![]() |
PushStreamContent(Func<Stream, HttpContent, TransportContext, Task>, MediaTypeHeaderValue) | Initializes a new instance of the PushStreamContent class. |
![]() |
PushStreamContent(Func<Stream, HttpContent, TransportContext, Task>, String) | Initializes a new instance of the PushStreamContent class. |
Properties
Name | Description | |
---|---|---|
![]() |
Headers | (Inherited from HttpContent.) |
Methods
Extension Methods
Name | Description | |
---|---|---|
![]() |
GetODataMessageReaderAsync(ODataMessageReaderSettings) | Overloaded. Gets the ODataMessageReader for the HttpContent stream. (Defined by ODataHttpContentExtensions.) |
![]() |
GetODataMessageReaderAsync(ODataMessageReaderSettings) | Overloaded. Gets the ODataMessageReader for the HttpContent stream.(Defined by ODataHttpContentExtensions.) |
![]() |
GetODataMessageReaderAsync(ODataMessageReaderSettings, CancellationToken) | Overloaded. Gets the ODataMessageReader for the HttpContent stream. (Defined by ODataHttpContentExtensions.) |
![]() |
GetODataMessageReaderAsync(ODataMessageReaderSettings, CancellationToken) | Overloaded. Gets the ODataMessageReader for the HttpContent stream.(Defined by ODataHttpContentExtensions.) |
![]() |
IsFormData() | Determines whether the specified content is HTML form URL-encoded data.(Defined by HttpContentFormDataExtensions.) |
![]() |
IsHttpRequestMessageContent() | Determines whether the specified content is HTTP request message content.(Defined by HttpContentMessageExtensions.) |
![]() |
IsHttpResponseMessageContent() | Determines whether the specified content is HTTP response message content.(Defined by HttpContentMessageExtensions.) |
![]() |
IsMimeMultipartContent() | Overloaded. Determines whether the specified content is MIME multipart content.(Defined by HttpContentMultipartExtensions.) |
![]() |
IsMimeMultipartContent(String) | Overloaded. Determines whether the specified content is MIME multipart content with the specified subtype.(Defined by HttpContentMultipartExtensions.) |
![]() |
ReadAsAsync(Type) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance. (Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync(Type, CancellationToken) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.(Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync(Type, IEnumerable<MediaTypeFormatter>) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content. (Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync(Type, IEnumerable<MediaTypeFormatter>, CancellationToken) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.(Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync(Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content. (Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync(Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.(Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync<T>() | Overloaded. Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance. (Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync<T>(CancellationToken) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance.(Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync<T>(IEnumerable<MediaTypeFormatter>) | Overloaded. Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance. (Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync<T>(IEnumerable<MediaTypeFormatter>, CancellationToken) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance.(Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync<T>(IEnumerable<MediaTypeFormatter>, IFormatterLogger) | Overloaded. Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance. (Defined by HttpContentExtensions.) |
![]() |
ReadAsAsync<T>(IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken) | Overloaded. Returns a Task that will yield an object of the specified type from the content instance.(Defined by HttpContentExtensions.) |
![]() |
ReadAsFormDataAsync() | Overloaded. Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.(Defined by HttpContentFormDataExtensions.) |
![]() |
ReadAsFormDataAsync(CancellationToken) | Overloaded. Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.(Defined by HttpContentFormDataExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync() | Overloaded. Reads the HttpContent as an HttpRequestMessage. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(String) | Overloaded. Reads the HttpContent as an HttpRequestMessage. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(String, CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(String, Int32) | Overloaded. Reads the HttpContent as an HttpRequestMessage. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(String, Int32, CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(String, Int32, Int32) | Overloaded. Reads the HttpContent as an HttpRequestMessage.(Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpRequestMessageAsync(String, Int32, Int32, CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpResponseMessageAsync() | Overloaded. Reads the HttpContent as an HttpResponseMessage. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpResponseMessageAsync(CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpResponseMessageAsync(Int32) | Overloaded. Reads the HttpContent as an HttpResponseMessage. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpResponseMessageAsync(Int32, CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpResponseMessageAsync(Int32, Int32) | Overloaded. Reads the HttpContent as an HttpResponseMessage.(Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsHttpResponseMessageAsync(Int32, Int32, CancellationToken) | Overloaded. (Defined by HttpContentMessageExtensions.) |
![]() |
ReadAsMultipartAsync() | Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.(Defined by HttpContentMultipartExtensions.) |
![]() |
ReadAsMultipartAsync(CancellationToken) | Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result.(Defined by HttpContentMultipartExtensions.) |
![]() |
ReadAsMultipartAsync<T>(T) | Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written.(Defined by HttpContentMultipartExtensions.) |
![]() |
ReadAsMultipartAsync<T>(T, CancellationToken) | Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written.(Defined by HttpContentMultipartExtensions.) |
![]() |
ReadAsMultipartAsync<T>(T, Int32) | Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.(Defined by HttpContentMultipartExtensions.) |
![]() |
ReadAsMultipartAsync<T>(T, Int32, CancellationToken) | Overloaded. Reads all body parts within a MIME multipart message and produces a set of HttpContent instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.(Defined by HttpContentMultipartExtensions.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Return to top