System.Net.Http Provides HTTP content based on a byte array. Initializes a new instance of the class. The content used to initialize the . The parameter is null. Initializes a new instance of the class. The content used to initialize the . The offset, in bytes, in the parameter used to initialize the . The number of bytes in the starting from the parameter used to initialize the . The parameter is null. The parameter is less than zero.-or-The parameter is greater than the length of content specified by the parameter.-or-The parameter is less than zero.-or-The parameter is greater than the length of content specified by the parameter - minus the parameter. Creates an HTTP content stream for reading whose backing store is memory from the . Returns .The HTTP content stream. Serialize and write the byte array provided in the constructor to an HTTP content stream. The target stream. Information about the transport(channel binding token, for example). This parameter may be null. Serialize and write the byte array provided in the constructor to an HTTP content stream as an asynchronous operation. Returns . The task object representing the asynchronous operation. The target stream. Information about the transport, like channel binding token. This parameter may be null. Determines whether a byte array has a valid length in bytes. Returns .true if is a valid length; otherwise, false. The length in bytes of the byte array. A base type for HTTP handlers that delegate the processing of HTTP response messages to another handler, called the inner handler. Initializes a new instance of the class with a specific inner handler. The inner handler which is responsible for processing the HTTP response messages. Releases the unmanaged resources used by the , and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Sends an HTTP request to the inner handler to send to the server synchronously. Returns . The HTTP response message from the inner handler. The HTTP request message to send to the server. A cancellation token to cancel operation. Sends an HTTP request to the inner handler to send to the server as an asynchronous operation. Returns . The task object representing the asynchronous operation. The HTTP request message to send to the server. A cancellation token to cancel operation. A container for name/value tuples encoded using application/x-www-form-urlencoded MIME type. Initializes a new instance of the class with a specific collection of name/value pairs. A collection of name/value pairs. Creates an HTTP content stream for reading whose backing store is memory from the . Returns . The HTTP content stream. Serialize and write the provided name/value pairs in the constructor to an HTTP content stream. The target stream. Information about the transport (the channel binding token, for example). This parameter may be a null reference. Serialize and write the provided name/value pairs in the constructor to an HTTP content stream as an asynchronous operation. Returns . The task object representing the asynchronous operation. The target stream. Information about the transport (the channel binding token, for example). This parameter may be a null reference. Determines whether the encoded name/value data has a valid length in bytes. Returns .true if is a valid length; otherwise, false. The length in bytes of the encoded name/value data. Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. Initializes a new instance of the class. Initializes a new instance of the class with a specific handler. The HTTP handler stack to use for sending requests. Gets or sets the base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests. Returns .The base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests. Cancel all pending requests on this instance. Gets the headers which should be sent with each request. Returns .The headers which should be sent with each request. Send a DELETE request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The request message was already sent by the instance. Send a DELETE request to the specified Uri. Returns .The HTTP response message. The request message was already sent by the instance. Send a DELETE request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. Send a DELETE request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. Releases the unmanaged resources and disposes of the managed resources used by the . Releases the unmanaged resources used by the and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Send a GET request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The request message was already sent by the instance. Send a GET request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The request message was already sent by the instance. Send a GET request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. The request message was already sent by the instance. Send a GET request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. The request message was already sent by the instance. Gets or sets the maximum number of bytes to buffer when reading the response content. Returns .The maximum number of bytes to buffer when reading the response content. The size specified is less than or equal to zero. An operation has already been started on the current instance. The current instance has been disposed. Send a POST request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a POST request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a POST request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a POST request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a PUT request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a PUT request to the specified Uri. Returns .The HTTP response message. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a PUT request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send a PUT request to the specified Uri as an asynchronous operation. Returns .The task object representing the asynchronous operation. The Uri the request is sent to. The HTTP request content sent to the server. The request message was already sent by the instance. Send an HTTP request synchronously. Returns .The HTTP response message. The HTTP request message to send. The request message was already sent by the instance. Send an HTTP request synchronously. Returns .The HTTP response message. The HTTP request message to send. When the operation should complete (as soon as a response is available or after reading the whole response content). The request message was already sent by the instance. Send an HTTP request synchronously. Returns .The HTTP response message. The HTTP request message to send. When the operation should complete (as soon as a response is available or after reading the whole response content). The cancellation token to cancel operation. The request message was already sent by the instance. Send an HTTP request synchronously. Returns .The HTTP response message. The HTTP request message to send. The cancellation token to cancel operation. The request message was already sent by the instance. Send an HTTP request as an asynchronous operation. Returns .The task object representing the asynchronous operation. The HTTP request message to send. The request message was already sent by the instance. Send an HTTP request as an asynchronous operation. Returns .The task object representing the asynchronous operation. The HTTP request message to send. When the operation should complete (as soon as a response is available or after reading the whole response content). This operation will not block. The request message was already sent by the instance. Send an HTTP request as an asynchronous operation. Returns .The task object representing the asynchronous operation. The HTTP request message to send. When the operation should complete (as soon as a response is available or after reading the whole response content). The cancellation token to cancel operation. The request message was already sent by the instance. Send an HTTP request as an asynchronous operation. Returns .The task object representing the asynchronous operation. The HTTP request message to send. The cancellation token to cancel operation. The request message was already sent by the instance. Gets or sets the number of milliseconds to wait before the request times out. Returns .The number of milliseconds to wait before the request times out. The timeout specified is less than or equal to zero and is not . An operation has already been started on the current instance. The current instance has been disposed. A base class for HTTP handler implementations. Creates an instance of a class. Gets or sets a value that indicates whether the handler should follow redirection responses. Returns .true if the if the handler should follow redirection responses; otherwise false. The default value is true. Gets or sets the type of decompression method used by the handler for automatic decompression of the HTTP content response. Returns .The automatic decompression method used by the handler. The default value is . Gets or sets the cookie container used to store server cookies by the handler. Returns .The cookie container used to store server cookies by the handler. Gets or sets authentication information used by this handler. Returns .The authentication credentials associated with the handler. The default is null. Releases the unmanaged resources used by the and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Gets or sets the maximum number of redirects that the handler follows. Returns .The maximum number of redirection responses that the handler follows. The default value is 50. Gets or sets the maximum request content buffer size used by the handler. Returns .The maximum request content buffer size in bytes. The default value is 65,536 bytes. Gets or sets a value that indicates whether the handler sends an Authorization header with the request. Returns .true for the handler to send an HTTP Authorization header with requests after authentication has taken place; otherwise, false. The default is false. Gets or sets proxy information used by the handler. Returns .The proxy information used by the handler. The default value is null. Creates an instance of based on the information provided in the . Returns .The HTTP response message. The HTTP request message. A cancellation token to cancel the operation. Creates an instance of based on the information provided in the as an operation that will not block. Returns .The task object representing the asynchronous operation. The HTTP request message. A cancellation token to cancel the operation. Gets a value that indicates whether the handler supports automatic response content decompression. Returns .true if the if the handler supports automatic response content decompression; otherwise false. The default value is true. Gets a value that indicates whether the handler supports proxy settings. Returns .true if the if the handler supports proxy settings; otherwise false. The default value is true. Gets a value that indicates whether the handler supports configuration settings for the and properties. Returns .true if the if the handler supports configuration settings for the and properties; otherwise false. The default value is true. Gets or sets a value that indicates whether the handler uses the property to store server cookies and uses these cookies when sending requests. Returns .true if the if the handler supports uses the property to store server cookies and uses these cookies when sending requests; otherwise false. The default value is true. Gets or sets a value that controls whether default credentials are sent with requests by the handler. Returns .true if the default credentials are used; otherwise false. The default value is false. Gets or sets a value that indicates whether the handler uses a proxy for requests. Returns .true if the handler should use a proxy for requests; otherwise false. The default value is true. Indicates if operations should be considered completed either as soon as a response is available, or after reading the entire response message including the content. The operation should complete after reading the entire response including the content. The operation should complete as soon as a response is available and headers are read. The content is not read yet. A base class representing an HTTP entity body and content headers. Initializes a new instance of the class. Gets a stream representing the serialized HTTP content. Returns .A stream representing the serialized HTTP content. Write the HTTP content to a stream. The target stream. Write the HTTP content to a stream. The target stream. Information about the transport (channel binding token, for example). This parameter may be null. Write the HTTP content to a stream as an asynchronous operation. Returns .The task object representing the asynchronous operation. The target stream. Write the HTTP content to a stream as an asynchronous operation. Returns .The task object representing the asynchronous operation. The target stream. Information about the transport (channel binding token, for example). This parameter may be null. Buffer the te HTTP content to a memory stream. Returns . Releases the unmanaged resources and disposes of the managed resources used by the . Releases the unmanaged resources used by the and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Gets the HTTP content headers as defined in RFC 2616. Returns .The content headers as defined in RFC 2616. Serialize the HTTP content to a memory buffer. Serialize the HTTP content to a memory buffer. The maximum size, in bytes, of the buffer to use. Serialize the HTTP content to a memory buffer as an asynchronous operation. Returns .The task object representing the asynchronous operation. Serialize the HTTP content to a memory buffer as an asynchronous operation. Returns .The task object representing the asynchronous operation. The maximum size, in bytes, of the buffer to use. Return the HTTP content as byte array. Returns .The HTTP content as byte array. Return the HTTP content as string. Returns .The HTTP content as a string. Serialize the HTTP content to a stream. The target stream. Information about the transport (channel binding token, for example). This parameter may be null. Serialize the HTTP content to a stream as an asynchronous operation. Returns .The task object representing the asynchronous operation. The target stream. Information about the transport (channel binding token, for example). This parameter may be null. Determines whether the HTTP content has a valid length in bytes. Returns .true if is a valid length; otherwise, false. The length in bytes of the HHTP content. A base type for HTTP message handlers. Initializes a new instance of the class. Releases the unmanaged resources and disposes of the managed resources used by the . Releases the unmanaged resources used by the and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Send an HTTP message synchronously. Returns .The HTTP response message. The HTTP message to send. The cancellation token to cancel operation. Send an HTTP request as an asynchronous operation. Returns .The task object representing the asynchronous operation. The HTTP request message to send. The cancellation token to cancel operation. A helper class for retrieving and comparing standard HTTP methods. Initializes a new instance of the class with a specific HTTP method. The HTTP method. Represents an HTTP DELETE protocol method. Returns . Returns . Returns . Represents an HTTP GET protocol method. Returns . Returns . Represents an HTTP HEAD protocol method. The HEAD method is identical to GET except that the server only returns message-headers in the response, without a message-body. Returns . An HTTP method. Returns .An HTTP method represented as a . Returns . Returns . Represents an HTTP OPTIONS protocol method. Returns . Represents an HTTP POST protocol method that is used to post a new entity as an addition to a URI. Returns . Represents an HTTP PUT protocol method that is used to replace an entity identified by a URI. Returns . Returns a string that represents the current object. Returns .A string representing the current object. Represents an HTTP TRACE protocol method. Returns . A base class for exceptions thrown by the and classes. Initializes a new instance of the class. Initializes a new instance of the class with a specific message that describes the current exception. A message that describes the current exception. Initializes a new instance of the class with a specific message that describes the current exception and an inner exception. A message that describes the current exception. The inner exception. Represents a HTTP request message. Initializes a new instance of the class. Initializes a new instance of the class with an HTTP method and a request . The HTTP method. A string that represents the request . Initializes a new instance of the class with an HTTP method and a request . The HTTP method. The to request. Gets or sets the contents of the HTTP message. Returns .The content of a message Releases the unmanaged resources and disposes of the managed resources used by the . Releases the unmanaged resources used by the and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Gets the collection of HTTP request headers. Returns .The collection of HTTP request headers. Gets or sets the HTTP method used by the HTTP request message. Returns .The HTTP method used by the request message. The default is the GET method. Gets a set of properties for the HTTP request. Returns . Gets or sets the used for the HTTP request. Returns .The used for the HTTP request. Returns a string that represents the current object. Returns .A string representation of the current object. Gets or sets the HTTP message version. Returns .The HTTP message version. The default is 1.1. Represents a HTTP response message. Initializes a new instance of the class. Initializes a new instance of the class with a specific . The status code of the HTTP response. Gets or sets the content of a HTTP response message. Returns .The content of the HTTP response message. Releases the unmanaged resources and disposes of unmanaged resources used by the . Releases the unmanaged resources used by the and optionally disposes of the managed resources. true to release both managed and unmanaged resources; false to releases only unmanaged resources. Throws an exception if the property for the HTTP response is false. Returns .The HTTP response message if the call is successful. Gets the collection of HTTP response headers. Returns .The collection of HTTP response headers. Gets a value that indicates if the HTTP response was successful. Returns .A value that indicates if the HTTP response was successful. true if was in the range 200-299; otherwise false. Gets or sets the reason phrase which typically is sent by servers together with the status code. Returns .The reason phrase sent by the server. Gets or sets the request message which led to this response message. Returns .The request message which led to this response message. Gets or sets the status code of the HTTP response. Returns .The status code of the HTTP response. Returns a string that represents the current object. Returns .A string representation of the current object. Gets or sets the HTTP message version. Returns .The HTTP message version. The default is 1.1. A base type for handlers which only do some small processing of request and/or response messages. Returns . Returns . Returns . Returns . Provides a collection of objects that get serialized using the multipart/* content type specification. Returns . Returns . Returns . Returns . Provides a container for content encoded using multipart/form-data MIME type. Provides HTTP content based on a stream. Returns . Returns . Returns . Provides HTTP content based on a string. Represents authentication information in Authorization, ProxyAuthorization, WWW-Authneticate, and Proxy-Authenticate header values. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents the value of the Cache-Control header. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents the value of the Content-Range header. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents an entity-tag header value. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents the collection of Content Headers as defined in RFC 2616. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . A collection of headers and their values as defined in RFC 2616. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a collection of header values. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents the collection of Request Headers as defined in RFC 2616. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents the collection of Response Headers as defined in RFC 2616. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a media-type as defined in the RFC 2616. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a content-type header value with an additional quality. Returns . Returns . Returns . Returns . Represents a name/value pair. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a name/value pair with parameters. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a product header value. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a value which can either be a product or a comment. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a header value which can either be a date/time or an entity-tag value. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents the value of the Range header. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a byte-range header value. Returns . Returns . Returns . Returns . Returns . Returns . Represents a header value which can either be a date/time or a timespan value. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a string header value with an optional quality. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a transfer-coding header value. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a transfer-coding header value with optional quality. Returns . Returns . Returns . Returns . Represents the value of a Via header. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Represents a warning value used by the Warning header. Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns . Returns .