Export (0) Print
Expand All

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)

public static class HttpContentMessageExtensions

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:
© 2014 Microsoft