-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathns-System.Net.Http.xml
More file actions
44 lines (32 loc) · 2.8 KB
/
ns-System.Net.Http.xml
File metadata and controls
44 lines (32 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Namespace Name="System.Net.Http">
<Docs>
<summary>Provides a programming interface for modern HTTP applications.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Net.Http> namespace is designed to provide the following components:
- 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 <xref:System.Net.Http> namespace and the related <xref:System.Net.Http.Headers> namespace provide the following set of components:
- <xref:System.Net.Http.HttpClient> - The primary class used to send and receive requests over HTTP.
- <xref:System.Net.Http.HttpRequestMessage> and <xref:System.Net.Http.HttpResponseMessage> - HTTP messages as defined in RFC 2616 by the IETF.
- <xref:System.Net.Http.Headers.HttpHeaders> - HTTP headers as defined in RFC 2616 by the IETF.
- <xref:System.Net.Http.HttpClientHandler> - HTTP handlers responsible for producing HTTP response messages.
There are various HTTP message handlers that you can use:
- <xref:System.Net.Http.DelegatingHandler> - A class used to plug a handler into a handler chain.
- <xref:System.Net.Http.HttpMessageHandler> - A simple class to derive from that supports the most common requirements for most applications.
- <xref:System.Net.Http.HttpClientHandler> - A class that operates at the bottom of the handler chain that actually handles the HTTP transport operations.
The contents of an HTTP message corresponds to the entity body defined in RFC 2616.
The following classes can be used for HTTP content:
- <xref:System.Net.Http.ByteArrayContent> - HTTP content based on a byte array.
- <xref:System.Net.Http.FormUrlEncodedContent> - HTTP content of name/value tuples encoded using application/x-www-form-urlencoded MIME type.
- <xref:System.Net.Http.MultipartContent> - HTTP content that gets serialized using the multipart/* content type specification.
- <xref:System.Net.Http.MultipartFormDataContent> - HTTP content encoded using the multipart/form-data MIME type.
- <xref:System.Net.Http.StreamContent> - HTTP content based on a stream.
- <xref:System.Net.Http.StringContent> - HTTP content based on a string.
If your app uses the <xref:System.Net.Http> and <xref:System.Net.Http.Headers> namespaces and intends to download large amounts of data (50 megabytes or more), then it should stream those downloads and not use the default buffering. If you use the default buffering, the client memory usage will get very large, potentially resulting in substantially reduced performance.
]]></format>
</remarks>
<altmember cref="N:System.Net.Http.Headers" />
</Docs>
</Namespace>