Thenamespace provides a programming interface for modern HTTP applications.
Provides HTTP content based on a byte array.
A type for HTTP handlers that delegate the processing of HTTP response messages to another handler, called the inner handler.
A container for name/value tuples encoded using application/x-www-form-urlencoded MIME type.
Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI.
The default message handler used by HttpClient.
A base class representing an HTTP entity body and content headers.
A base type for HTTP message handlers.
A specialty class that allows applications to call the SendAsync method on an Http handler chain.
A helper class for retrieving and comparing standard HTTP methods and for creating new HTTP methods.
Represents a HTTP request message.
Represents a HTTP response message including the status code and data.
A base type for handlers which only do some small processing of request and/or response messages.
Provides a collection of HttpContent objects that get serialized using the multipart/* content type specification.
Provides a container for content encoded using multipart/form-data MIME type.
Provides HTTP content based on a stream.
Provides HTTP content based on a string.
Provides desktop-specific features not available to Windows Store apps or other environments.
Thenamespace is designed to provide the following:
HTTP client components that allow users to consume modern web services over HTTP.
HTTP components that can be used by both clients and servers (HTTP headers and messages, for example). This provides a consistent programming model on both the client and the server side for modern web services over HTTP.
The System.Net.Http.Headers namespace provide the following set of components:namespace and the related
HttpClient - the primary class used to send and receive requests over HTTP.
HttpHeaders - HTTP headers as defined in RFC 2616 by the IETF.
HttpClientHandler - HTTP handlers responsible for producing HTTP response messages.
There are various HTTP message handles that can be used. These include the following.
DelegatingHandler - A class used to plug a handler into a handler chain.
HttpMessageHandler - A simple to class to derive from that supports the most common requirements for most applications.
HttpClientHandler - A class that operates at the bottom of the handler chain that actually handles the HTTP transport operations.
WebRequestHandler - A specialty class that operates at the bottom of the handler chain class that handles HTTP transport operations with options that are specific to the System.Net.HttpWebRequest object.
The contents of an HTTP message corresponds to the entity body defined in RFC 2616.
A number of classes can be used for HTTP content. These include the following.
ByteArrayContent - HTTP content based on a byte array.
FormUrlEncodedContent - HTTP content of name/value tuples encoded using application/x-www-form-urlencoded MIME type.
MultipartContent - HTTP content that gets serialized using the multipart/* content type specification.
MultipartFormDataContent - HTTP content encoded using the multipart/form-data MIME type.
StreamContent - HTTP content based on a stream.
StringContent - HTTP content based on a string.
If an app using the System.Net.Http.Headers namespaces intends to download large amounts of data (50 megabytes or more), then the app should stream those downloads and not use the default buffering. If the default buffering is used the client memory usage will get very large, potentially resulting in substantially reduced performance.and
Classes in the System.Net.Http.Headers namespaces can be used to develop Windows Store apps or desktop apps. When used in a Windows Store app, classes in the and System.Net.Http.Headers namespaces are affected by network isolation feature, part of the application security model used by the Windows 8. The appropriate network capabilities must be enabled in the app manifest for a Windows Store app for the system to allow network access by a Windows store app. For more information, see the Network Isolation for Windows Store Apps.and