Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

System.Net.Http

System Library

Author Microsoft
Version 10.0.1
Tags

Public Types

System.​Net.​Http

Provides HTTP content based on a byte array.
Specifies how client certificates are provided.
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.
class HeaderEncodingSelector<​TContext>
Represents a method that specifies the encoding to use when interpreting header values.
class HttpClient
Provides a class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI.
The default message handler used by <see cref="T:System.Net.Http.HttpClient" /> in .NET Framework and .NET Core 2.0 and earlier.
Indicates if <see cref="T:System.Net.Http.HttpClient" /> operations should be considered completed either as soon as a response is available, or after reading the entire response message including the content.
class HttpContent
A base class representing an HTTP entity body and content headers.
The exception that is thrown when an error occurs while reading the response.
Specifies when the HTTP/2 ping frame is sent on an idle connection.
A base type for HTTP message handlers.
A specialty class that allows applications to call the <see cref="M:System.Net.Http.HttpMessageInvoker.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method on an HTTP handler chain.
class HttpMethod
A helper class for retrieving and comparing standard HTTP methods and for creating new HTTP methods.
The exception thrown when an HTTP/2 or an HTTP/3 protocol error occurs.
Defines error categories representing the reason for <see cref="T:System.Net.Http.HttpRequestException" /> or <see cref="T:System.Net.Http.HttpIOException" /> .
A base class for exceptions thrown by the <see cref="T:System.Net.Http.HttpClient" /> and <see cref="T:System.Net.Http.HttpMessageHandler" /> classes.
Represents a HTTP request message.
Represents a collection of options for an HTTP request.
struct HttpRequestOptionsKey<​TValue>
Represents a key in the options collection for an HTTP request.
Represents a HTTP response message including the status code and data.
Specifies behaviors for selecting and negotiating the HTTP version for a request.
A base type for handlers which only do some small processing of request and/or response messages.
Provides a collection of <see cref="T:System.Net.Http.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 <see cref="T:System.ReadOnlyMemory`1" /> .
Represents the context passed to the <see cref="P:System.Net.Http.SocketsHttpHandler.ConnectCallback" /> for a <see cref="T:System.Net.Http.SocketsHttpHandler" /> instance. .
Provides the default message handler used by <see cref="T:System.Net.Http.HttpClient" /> in .NET Core 2.1 and later.
Represents the context passed to the PlaintextStreamFilter for a SocketsHttpHandler instance.
Provides HTTP content based on a stream.
Provides HTTP content based on a string.

System.​Net.​Http.​Headers

Represents authentication information in Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate header values.
Represents the value of the Cache-Control header.
Represents the value of the Content-Disposition header.
Represents the value of the Content-Range header.
Represents an entity-tag header value.
Provides a collection of header string values.
Represents the collection of Content Headers as defined in RFC 2616.
class HttpHeaders
A collection of headers and their values as defined in RFC 2616.
Provides a view on top of a <see cref="T:System.Net.Http.Headers.HttpHeaders" /> collection that avoids forcing validation or parsing on its contents.
Represents a collection of header values.
Represents the collection of Request Headers as defined in RFC 2616.
Represents the collection of Response Headers as defined in RFC 2616.
Represents a media type used in a Content-Type header as defined in the RFC 2616.
Represents a media type with an additional quality factor used in a Content-Type header.
Represents a name/value pair used in various headers as defined in RFC 2616.
Represents a name/value pair with parameters used in various headers as defined in RFC 2616.
Represents a product token value in a User-Agent header.
Represents a value that can either be a product or a comment in a User-Agent header.
Represents an If-Range header value that can either be a date/time or an entity-tag value.
Represents a Range header value.
Represents a byte range in a Range header value.
Represents a Retry-After header value that can either be a date/time or a timespan value.
Represents a string header value with an optional quality.
Represents an accept-encoding header value.
Represents an Accept-Encoding header value with optional quality factor.
Represents the value of a Via header.
Represents a warning value used by the Warning header.

System.​Net.​Http.​Metrics

Provides functionality for enriching the <c>http.client.request.duration</c> metric.