Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpContentMessageExtensions Class

HttpContentMessageExtensions Class

Provides extension methods to read HttpRequestMessage and HttpResponseMessage entities from HttpContent instances.

System.Object
  System.Net.Http.HttpContentMessageExtensions

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class HttpContentMessageExtensions
'Usage

The HttpContentMessageExtensions type exposes the following members.

  NameDescription
Public methodStatic memberIsHttpRequestMessageContentDetermines whether the specified content is HTTP request message content.
Public methodStatic memberIsHttpResponseMessageContentDetermines whether the specified content is HTTP response message content.
Public methodStatic memberReadAsHttpRequestMessageAsync(HttpContent) Reads the HttpContent as an HttpRequestMessage.
Public methodStatic memberReadAsHttpRequestMessageAsync(HttpContent, String) Reads the HttpContent as an HttpRequestMessage.
Public methodStatic memberReadAsHttpRequestMessageAsync(HttpContent, String, Int32) Reads the HttpContent as an HttpRequestMessage.
Public methodStatic memberReadAsHttpRequestMessageAsync(HttpContent, String, Int32, Int32)Reads the HttpContent as an HttpRequestMessage.
Public methodStatic memberReadAsHttpResponseMessageAsync(HttpContent) Reads the HttpContent as an HttpResponseMessage.
Public methodStatic memberReadAsHttpResponseMessageAsync(HttpContent, Int32)Reads the HttpContent as an HttpResponseMessage.
Public methodStatic memberReadAsHttpResponseMessageAsync(HttpContent, Int32, Int32)Reads the HttpContent as an HttpResponseMessage.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft