System.Net.Http.Formatting
implementation which provides a byte range view over a stream used to generate HTTP 206 (Partial Content) byte range responses. The supports one or more byte ranges regardless of whether the ranges are consecutive or not. If there is only one range then a single partial response body containing a Content-Range header is generated. If there are more than one ranges then a multipart/byteranges response is generated where each body part contains a range indicated by the associated Content-Range header field.
implementation which provides a byte range view over a stream used to generate HTTP 206 (Partial Content) byte range responses. If none of the requested ranges overlap with the current extend of the selected resource represented by the content parameter then an is thrown indicating the valid Content-Range of the content.
The stream over which to generate a byte range view.
The range or ranges, typically obtained from the Range HTTP request header field.
The media type of the content stream.
implementation which provides a byte range view over a stream used to generate HTTP 206 (Partial Content) byte range responses. If none of the requested ranges overlap with the current extend of the selected resource represented by the content parameter then an is thrown indicating the valid Content-Range of the content.
The stream over which to generate a byte range view.
The range or ranges, typically obtained from the Range HTTP request header field.
The media type of the content stream.
The buffer size used when copying the content stream.
implementation which provides a byte range view over a stream used to generate HTTP 206 (Partial Content) byte range responses. If none of the requested ranges overlap with the current extend of the selected resource represented by the content parameter then an is thrown indicating the valid Content-Range of the content.
The stream over which to generate a byte range view.
The range or ranges, typically obtained from the Range HTTP request header field.
The media type of the content stream.
implementation which provides a byte range view over a stream used to generate HTTP 206 (Partial Content) byte range responses. If none of the requested ranges overlap with the current extend of the selected resource represented by the content parameter then an is thrown indicating the valid Content-Range of the content.
The stream over which to generate a byte range view.
The range or ranges, typically obtained from the Range HTTP request header field.
The media type of the content stream.
The buffer size used when copying the content stream.
Releases the resources used by the current instance of the class.
true to release managed and unmanaged resources; false to release only unmanaged resources.
Asynchronously serialize and write the byte range to an HTTP content stream.
The task object representing the asynchronous operation.
The target stream.
Information about the transport.
Determines whether a byte array has a valid length in bytes.
true if length is a valid length; otherwise, false.
The length in bytes of the byte array.
Extension methods that aid in making formatted requests using .
Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as XML.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as XML.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The authoritative value of the request's content's Content-Type header. Can be null in which case the <paramref name="formatter">formatter's</paramref> default content type will be used.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The authoritative value of the request's content's Content-Type header. Can be null in which case the <paramref name="formatter">formatter's</paramref> default content type will be used.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The authoritative value of the request's content's Content-Type header. Can be null in which case the <paramref name="formatter">formatter's</paramref> default content type will be used.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as XML.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as XML.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The authoritative value of the request's content's Content-Type header. Can be null in which case the <paramref name="formatter">formatter's</paramref> default content type will be used.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The authoritative value of the request's content's Content-Type header. Can be null in which case the <paramref name="formatter">formatter's</paramref> default content type will be used.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
The authoritative value of the request's content's Content-Type header. Can be null in which case the <paramref name="formatter">formatter's</paramref> default content type will be used.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
A task object representing the asynchronous operation.
The client used to make the request.
The Uri the request is sent to.
The value that will be placed in the request's entity body.
The formatter used to serialize the value.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The type of value.
Represents the factory for creating new instance of .
Creates a new instance of the .
A new instance of the .
The list of HTTP handler that delegates the processing of HTTP response messages to another handler.
Creates a new instance of the .
A new instance of the .
The inner handler which is responsible for processing the HTTP response messages.
The list of HTTP handler that delegates the processing of HTTP response messages to another handler.
Creates a new instance of the which should be pipelined.
A new instance of the which should be pipelined.
The inner handler which is responsible for processing the HTTP response messages.
The list of HTTP handler that delegates the processing of HTTP response messages to another handler.
Specifies extension methods to allow strongly typed objects to be read from HttpContent instances.
Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
An object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
An object instance of the specified type.
The HttpContent instance from which to read.
The collection of MediaTyepFormatter instances to use.
The type of the object to read.
Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
An object instance of the specified type.
The HttpContent instance from which to read.
The collection of MediaTypeFormatter instances to use.
The IFormatterLogger to log events to.
The type of the object to read.
Returns a Task that will yield an object of the specified type from the content instance.
An object instance of the specified type.
The HttpContent instance from which to read.
The collection of MediaTypeFormatter instances to use.
The IFormatterLogger to log events to.
The token to cancel the operation.
The type of the object to read.
Returns a Task that will yield an object of the specified type from the content instance.
An object instance of the specified type.
The HttpContent instance from which to read.
The collection of MediaTypeFormatter instances to use.
The token to cancel the operation.
The type of the object to read.
Returns a Task that will yield an object of the specified type from the content instance.
An object instance of the specified type.
The HttpContent instance from which to read.
The token to cancel the operation.
The type of the object to read.
Returns a Task that will yield an object of the specified type from the content instance.
A Task that will yield an object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.
An object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
The collection of MediaTypeFormatter instances to use.
Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.
An object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
The collection of MediaTypeFormatter instances to use.
The IFormatterLogger to log events to.
Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.
An object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
The collection of MediaTypeFormatter instances to use.
The IFormatterLogger to log events to.
The token to cancel the operation.
Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.
An object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
The collection of MediaTypeFormatter instances to use.
The token to cancel the operation.
Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.
An object instance of the specified type.
The HttpContent instance from which to read.
The type of the object to read.
The token to cancel the operation.
Extension methods to read HTML form URL-encoded datafrom instances.
Determines whether the specified content is HTML form URL-encoded data.
true if the specified content is HTML form URL-encoded data; otherwise, false.
The content.
Asynchronously reads HTML form URL-encoded from an instance and stores the results in a object.
A task object representing the asynchronous operation.
The content.
Asynchronously reads HTML form URL-encoded from an instance and stores the results in a object.
A task object representing the asynchronous operation.
The content.
The token to cancel the operation.
Provides extension methods to read and entities from instances.
Determines whether the specified content is HTTP request message content.
true if the specified content is HTTP message content; otherwise, false.
The content to check.
Determines whether the specified content is HTTP response message content.
true if the specified content is HTTP message content; otherwise, false.
The content to check.
Reads the as an .
The parsed instance.
The content to read.
Reads the as an .
The parsed instance.
The content to read.
The URI scheme to use for the request URI.
Reads the as an .
The parsed instance.
The content to read.
The URI scheme to use for the request URI.
The size of the buffer.
Reads the as an .
The parsed instance.
The content to read.
The URI scheme to use for the request URI.
The size of the buffer.
The maximum length of the HTTP header.
Reads the as an .
The parsed instance.
The content to read.
Reads the as an .
The parsed instance.
The content to read.
The size of the buffer.
Reads the as an .
The parsed instance.
The content to read.
The size of the buffer.
The maximum length of the HTTP header.
Extension methods to read MIME multipart entities from instances.
Determines whether the specified content is MIME multipart content.
true if the specified content is MIME multipart content; otherwise, false.
The content.
Determines whether the specified content is MIME multipart content with the specified subtype.
true if the specified content is MIME multipart content with the specified subtype; otherwise, false.
The content.
The MIME multipart subtype to match.
Reads all body parts within a MIME multipart message and produces a set of instances as a result.
A representing the tasks of getting the collection of instances where each instance represents a body part.
An existing instance to use for the object's content.
Reads all body parts within a MIME multipart message and produces a set of instances as a result.
A representing the tasks of getting the collection of instances where each instance represents a body part.
An existing instance to use for the object's content.
The token to cancel the operation.
Reads all body parts within a MIME multipart message and produces a set of instances as a result using the streamProvider instance to determine where the contents of each body part is written.
A representing the tasks of getting the collection of instances where each instance represents a body part.
An existing instance to use for the object's content.
A stream provider providing output streams for where to write body parts as they are parsed.
The type of the MIME multipart.
Reads all body parts within a MIME multipart message and produces a set of instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.
A representing the tasks of getting the collection of instances where each instance represents a body part.
An existing instance to use for the object's content.
A stream provider providing output streams for where to write body parts as they are parsed.
Size of the buffer used to read the contents.
The type of the MIME multipart.
Reads all body parts within a MIME multipart message and produces a set of instances as a result using the streamProvider instance to determine where the contents of each body part is written and bufferSize as read buffer size.
A representing the tasks of getting the collection of instances where each instance represents a body part.
An existing instance to use for the object's content.
A stream provider providing output streams for where to write body parts as they are parsed.
Size of the buffer used to read the contents.
The token to cancel the operation.
The type of the MIME multipart.
Reads all body parts within a MIME multipart message and produces a set of instances as a result using the streamProvider instance to determine where the contents of each body part is written.
A representing the tasks of getting the collection of instances where each instance represents a body part.
An existing instance to use for the object's content.
A stream provider providing output streams for where to write body parts as they are parsed.
The token to cancel the operation.
The type of the MIME multipart.
Derived class which can encapsulate an or an as an entity with media type "application/http".
Initializes a new instance of the class encapsulating an .
The instance to encapsulate.
Initializes a new instance of the class encapsulating an .
The instance to encapsulate.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Gets the HTTP request message.
Gets the HTTP response message.
Asynchronously serializes the object's content to the given stream.
A instance that is asynchronously serializing the object's content.
The to which to write.
The associated .
Computes the length of the stream if possible.
true if the length has been computed; otherwise false.
The computed length of the stream.
Provides extension methods for the class.
Gets any cookie headers present in the request.
A collection of instances.
The request headers.
Gets any cookie headers present in the request that contain a cookie state whose name that matches the specified value.
A collection of instances.
The request headers.
The cookie state name to match.
Provides extension methods for the class.
Adds cookies to a response. Each Set-Cookie header is represented as one instance. A contains information about the domain, path, and other cookie information as well as one or more instances. Each instance contains a cookie name and whatever cookie state is associate with that name. The state is in the form of a which on the wire is encoded as HTML Form URL-encoded data. This representation allows for multiple related "cookies" to be carried within the same Cookie header while still providing separation between each cookie state. A sample Cookie header is shown below. In this example, there are two with names state1 and state2 respectively. Further, each cookie state contains two name/value pairs (name1/value1 and name2/value2) and (name3/value3 and name4/value4). <code> Set-Cookie: state1:name1=value1&name2=value2; state2:name3=value3&name4=value4; domain=domain1; path=path1; </code>
The response headers
The cookie values to add to the response.
An exception thrown by in case none of the requested ranges overlap with the current extend of the selected resource. The current extend of the resource is indicated in the ContentRange property.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
The current extend of the resource indicated in terms of a ContentRange header field.
Represents a multipart file data.
Initializes a new instance of the class.
The headers of the multipart file data.
The name of the local file for the multipart file data.
Gets or sets the headers of the multipart file data.
The headers of the multipart file data.
Gets or sets the name of the local file for the multipart file data.
The name of the local file for the multipart file data.
Represents an suited for writing each MIME body parts of the MIME multipart message to a file using a .
Initializes a new instance of the class.
The root path where the content of MIME multipart body parts are written to.
Initializes a new instance of the class.
The root path where the content of MIME multipart body parts are written to.
The number of bytes buffered for writes to the file.
Gets or sets the number of bytes buffered for writes to the file.
The number of bytes buffered for writes to the file.
Gets or sets the multipart file data.
The multipart file data.
Gets the name of the local file which will be combined with the root path to create an absolute file name where the contents of the current MIME body part will be stored.
A relative filename with no path component.
The headers for the current MIME body part.
Gets the stream instance where the message body part is written to.
The instance where the message body part is written to.
The content of HTTP.
The header fields describing the body part.
Gets or sets the root path where the content of MIME multipart body parts are written to.
The root path where the content of MIME multipart body parts are written to.
A implementation suited for use with HTML file uploads for writing file content to a remote storage . The stream provider looks at the Content-Disposition header field and determines an output remote based on the presence of a filename parameter. If a filename parameter is present in the Content-Disposition header field, then the body part is written to a remote provided by . Otherwise it is written to a .
Initializes a new instance of the class.
Read the non-file contents as form data.
A representing the post processing.
Read the non-file contents as form data.
A representing the post processing.
The token to monitor for cancellation requests.
Gets a collection of file data passed as part of the multipart form data.
Gets a of form data passed as part of the multipart form data.
Provides a for . Override this method to provide a remote stream to which the data should be written.
A result specifying a remote stream where the file will be written to and a location where the file can be accessed. It cannot be null and the stream must be writable.
The parent MIME multipart instance.
The header fields describing the body part's content.
Represents an suited for use with HTML file uploads for writing file content to a .
Initializes a new instance of the class.
The root path where the content of MIME multipart body parts are written to.
Initializes a new instance of the class.
The root path where the content of MIME multipart body parts are written to.
The number of bytes buffered for writes to the file.
Reads the non-file contents as form data.
A task that represents the asynchronous operation.
Gets a of form data passed as part of the multipart form data.
The of form data.
Gets the streaming instance where the message body part is written.
The instance where the message body part is written.
The HTTP content that contains this body part.
Header fields describing the body part.
Represents a multipart memory stream provider.
Initializes a new instance of the class.
Returns the for the .
The for the .
A object.
The HTTP content headers.
Represents the provider for the multipart related multistream.
Initializes a new instance of the class.
Gets the related stream for the provider.
The content headers.
The parent content.
The http content headers.
Gets the root content of the .
The root content of the .
Represents a multipart file data for remote storage.
Initializes a new instance of the class.
The headers of the multipart file data.
The remote file's location.
The remote file's name.
Gets the remote file's name.
Gets the headers of the multipart file data.
Gets the remote file's location.
Represents a stream provider that examines the headers provided by the MIME multipart parser as part of the MIME multipart extension methods (see ) and decides what kind of stream to return for the body part to be written to.
Initializes a new instance of the class.
Gets or sets the contents for this .
The contents for this .
Executes the post processing operation for this .
The asynchronous task for this operation.
Executes the post processing operation for this .
The asynchronous task for this operation.
The token to cancel the operation.
Gets the stream where to write the body part to. This method is called when a MIME multipart body part has been parsed.
The instance where the message body part is written to.
The content of the HTTP.
The header fields describing the body part.
Contains a value as well as an associated that will be used to serialize the value when writing this content.
Initializes a new instance of the class.
The type of object this instance will contain.
The value of the object this instance will contain.
The formatter to use when serializing the value.
Initializes a new instance of the class.
The type of object this instance will contain.
The value of the object this instance will contain.
The formatter to use when serializing the value.
The authoritative value of the Content-Type header. Can be null, in which case the default content type of the formatter will be used.
Initializes a new instance of the class.
The type of object this instance will contain.
The value of the object this instance will contain.
The formatter to use when serializing the value.
The authoritative value of the Content-Type header.
Gets the media-type formatter associated with this content instance.
The media type formatter associated with this content instance.
Gets the type of object managed by this instance.
The object type.
Asynchronously serializes the object's content to the given stream.
The task object representing the asynchronous operation.
The stream to write to.
The associated .
Computes the length of the stream if possible.
true if the length has been computed; otherwise, false.
Receives the computed length of the stream.
Gets or sets the value of the content.
The content value.
Generic form of .
The type of object this class will contain.
Initializes a new instance of the class.
The value of the object this instance will contain.
The formatter to use when serializing the value.
Initializes a new instance of the <see cref="T:System.Net.Http.ObjectContent`1" /> class.
The value of the object this instance will contain.
The formatter to use when serializing the value.
The authoritative value of the Content-Type header. Can be null, in which case the default content type of the formatter will be used.
Initializes a new instance of the class.
The value of the object this instance will contain.
The formatter to use when serializing the value.
The authoritative value of the Content-Type header.
Enables scenarios where a data producer wants to write directly (either synchronously or asynchronously) using a stream.
Initializes a new instance of the class.
An action that is called when an output stream is available, allowing the action to write to it directly.
Initializes a new instance of the class.
An action that is called when an output stream is available, allowing the action to write to it directly.
The media type.
Initializes a new instance of the class.
An action that is called when an output stream is available, allowing the action to write to it directly.
The media type.
Initializes a new instance of the class.
An action that is called when an output stream is available, allowing the action to write to it directly.
Initializes a new instance of the class.
An action that is called when an output stream is available, allowing the action to write to it directly.
The media type.
Initializes a new instance of the class.
An action that is called when an output stream is available, allowing the action to write to it directly.
The media type.
Asynchronously serializes the push content into stream.
The serialized push content.
The stream where the push content will be serialized.
The context.
Determines whether the stream content has a valid length in bytes.
true if length is a valid length; otherwise, false.
The length in bytes of the stream content.
Represents the result for .
Initializes a new instance of the class.
The remote stream instance where the file will be written to.
The remote file's location.
The remote file's name.
Gets the remote file's location.
Gets the remote file's location.
Gets the remote stream instance where the file will be written to.
Defines an exception type for signalling that a request's media type was not supported.
Initializes a new instance of the class.
The message that describes the error.
The unsupported media type.
Gets or sets the media type.
The media type.
Contains extension methods to allow strongly typed objects to be read from the query component of instances.
Parses the query portion of the specified URI.
A that contains the query parameters.
The URI to parse.
Reads HTML form URL encoded data provided in the URI query string as an object of a specified type.
true if the query component of the URI can be read as the specified type; otherwise, false.
The URI to read.
The type of object to read.
When this method returns, contains an object that is initialized from the query component of the URI. This parameter is treated as uninitialized.
Reads HTML form URL encoded data provided in the URI query string as an object of a specified type.
true if the query component of the URI can be read as the specified type; otherwise, false.
The URI to read.
When this method returns, contains an object that is initialized from the query component of the URI. This parameter is treated as uninitialized.
The type of object to read.
Reads HTML form URL encoded data provided in the query component as a object.
true if the query component can be read as ; otherwise false.
The instance from which to read.
An object to be initialized with this instance or null if the conversion cannot be performed.
Abstract media type formatter class to support Bson and Json.
Initializes a new instance of the class.
Initializes a new instance of the class.
The instance to copy settings from.
Determines whether this formatter can read objects of the specified type.
true if objects of this type can be read, otherwise false.
The type of object that will be read.
Determines whether this formatter can write objects of the specified type.
true if objects of this type can be written, otherwise false.
The type of object to write.
Creates a instance with the default settings used by the .
Returns .
Called during deserialization to get the .
The reader to use during deserialization.
The type of the object to read.
The stream from which to read.
The encoding to use when reading.
Called during serialization and deserialization to get the .
The JsonSerializer used during serialization and deserialization.
Called during serialization to get the .
The writer to use during serialization.
The type of the object to write.
The stream to write to.
The encoding to use when writing.
Gets or sets the maximum depth allowed by this formatter.
The maximum depth allowed by this formatter.
Called during deserialization to read an object of the specified type from the specified stream.
The object that has been read.
The type of the object to read.
The stream from which to read.
The encoding to use when reading.
The logger to log events to.
Called during deserialization to read an object of the specified type from the specified stream.
A task whose result will be the object instance that has been read.
The type of the object to read.
The stream from which to read.
The for the content being read.
The logger to log events to.
Gets or sets the JsonSerializerSettings used to configure the JsonSerializer.
The JsonSerializerSettings used to configure the JsonSerializer.
Called during serialization to write an object of the specified type to the specified stream.
The type of the object to write.
The object to write.
The stream to write to.
The encoding to use when writing.
Called during serialization to write an object of the specified type to the specified stream.
Returns .
The type of the object to write.
The object to write.
The stream to write to.
The for the content being written.
The transport context.
The token to monitor for cancellation.
Represents a media type formatter to handle Bson.
Initializes a new instance of the class.
Initializes a new instance of the class.
The formatter to copy settings from.
Called during deserialization to get the .
The reader to use during deserialization.
The type of the object to read.
The stream from which to read.
The encoding to use when reading.
Called during serialization to get the .
The writer to use during serialization.
The type of the object to write.
The stream to write to.
The encoding to use when writing.
Gets the default media type for Json, namely "application/bson".
The default media type for Json, namely "application/bson".
Gets or sets the maximum depth allowed by this formatter.
The maximum depth allowed by this formatter.
Called during deserialization to read an object of the specified type from the specified stream.
The object that has been read.
The type of the object to read.
The stream from which to read.
The encoding to use when reading.
The logger to log events to.
Called during deserialization to read an object of the specified type from the specified stream.
A task whose result will be the object instance that has been read.
The type of the object to read.
The stream from which to read.
The for the content being read.
The logger to log events to.
Called during serialization to write an object of the specified type to the specified stream.
The type of the object to write.
The object to write.
The stream to write to.
The encoding to use when writing.
Represents a helper class to allow a synchronous formatter on top of the asynchronous formatter infrastructure.
Initializes a new instance of the class.
Initializes a new instance of the class.
The instance to copy settings from.
Gets or sets the suggested size of buffer to use with streams in bytes.
The suggested size of buffer to use with streams in bytes.
Reads synchronously from the buffered stream.
An object of the given .
The type of the object to deserialize.
The stream from which to read.
The , if available. Can be null.
The to log events to.
Reads synchronously from the buffered stream.
An object of the given .
The type of the object to deserialize.
The stream from which to read.
The , if available. Can be null.
The to log events to.
The token to cancel the operation.
Reads asynchronously from the buffered stream.
A task object representing the asynchronous operation.
The type of the object to deserialize.
The stream from which to read.
The , if available. Can be null.
The to log events to.
Reads asynchronously from the buffered stream.
A task object representing the asynchronous operation.
The type of the object to deserialize.
The stream from which to read.
The , if available. Can be null.
The to log events to.
The token to cancel the operation.
Writes synchronously to the buffered stream.
The type of the object to serialize.
The object value to write. Can be null.
The stream to which to write.
The , if available. Can be null.
Writes synchronously to the buffered stream.
The type of the object to serialize.
The object value to write. Can be null.
The stream to which to write.
The , if available. Can be null.
The token to cancel the operation.
Writes asynchronously to the buffered stream.
A task object representing the asynchronous operation.
The type of the object to serialize.
The object value to write. It may be null.
The stream to which to write.
The , if available. Can be null.
The transport context.
Writes asynchronously to the buffered stream.
A task object representing the asynchronous operation.
The type of the object to serialize.
The object value to write. It may be null.
The stream to which to write.
The , if available. Can be null.
The transport context.
The token to cancel the operation.
Represents the result of content negotiation performed using <see cref="M:System.Net.Http.Formatting.IContentNegotiator.Negotiate(System.Type,System.Net.Http.HttpRequestMessage,System.Collections.Generic.IEnumerable{System.Net.Http.Formatting.MediaTypeFormatter})" />
Create the content negotiation result object.
The formatter.
The preferred media type. Can be null.
The formatter chosen for serialization.
The media type that is associated with the formatter chosen for serialization. Can be null.
The default implementation of , which is used to select a for an or .
Initializes a new instance of the class.
Initializes a new instance of the class.
true to exclude formatters that match only on the object type; otherwise, false.
Determines how well each formatter matches an HTTP request.
Returns a collection of objects that represent all of the matches.
The type to be serialized.
The request.
The set of objects from which to choose.
If true, exclude formatters that match only on the object type; otherwise, false.
Returns a .
Matches a set of Accept header fields against the media types that a formatter supports.
Returns a object that indicates the quality of the match, or null if there is no match.
A list of Accept header values, sorted in descending order of q factor. You can create this list by calling the method.
The formatter to match against.
Matches a request against the objects in a media-type formatter.
Returns a object that indicates the quality of the match, or null if there is no match.
The request to match.
The media-type formatter.
Match the content type of a request against the media types that a formatter supports.
Returns a object that indicates the quality of the match, or null if there is no match.
The request to match.
The formatter to match against.
Selects the first supported media type of a formatter.
Returns a with set to MatchOnCanWriteType, or null if there is no match. A indicating the quality of the match or null is no match.
The type to match.
The formatter to match against.
Performs content negotiating by selecting the most appropriate out of the passed in for the given that can serialize an object of the given .
The result of the negotiation containing the most appropriate instance, or null if there is no appropriate formatter.
The type to be serialized.
The request.
The set of objects from which to choose.
Determines the best character encoding for writing the response.
Returns the that is the best match.
The request.
The selected media formatter.
Select the best match among the candidate matches found.
Returns the object that represents the best match.
The collection of matches.
Determine whether to match on type or not. This is used to determine whether to generate a 406 response or use the default media type formatter in case there is no match against anything in the request. If ExcludeMatchOnTypeOnly is true then we don't match on type unless there are no accept headers.
True if not ExcludeMatchOnTypeOnly and accept headers with a q-factor bigger than 0.0 are present.
The sorted accept header values to match.
Sorts Accept header values in descending order of q factor.
Returns the sorted list of MediaTypeWithQualityHeaderValue objects.
A collection of StringWithQualityHeaderValue objects, representing the header fields.
Sorts a list of Accept-Charset, Accept-Encoding, Accept-Language or related header values in descending order or q factor.
Returns the sorted list of StringWithQualityHeaderValue objects.
A collection of StringWithQualityHeaderValue objects, representing the header fields.
Evaluates whether a match is better than the current match.
Returns whichever object is a better match.
The current match.
The match to evaluate against the current match.
Helper class to serialize <see cref="T:System.Collections.Generic.IEnumerable`1" /> types by delegating them through a concrete implementation."/>.
The interface implementing to proxy.
Initialize a DelegatingEnumerable. This constructor is necessary for to work.
Initialize a DelegatingEnumerable with an <see cref="T:System.Collections.Generic.IEnumerable`1" />. This is a helper class to proxy <see cref="T:System.Collections.Generic.IEnumerable`1" /> interfaces for .
The <see cref="T:System.Collections.Generic.IEnumerable`1" /> instance to get the enumerator from.
This method is not implemented but is required method for serialization to work. Do not use.
The item to add. Unused.
Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />.
The enumerator of the <see cref="T:System.Collections.Generic.IEnumerable`1" /> source.
Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />.
The enumerator of the <see cref="T:System.Collections.Generic.IEnumerable`1" /> source.
Represent the collection of form data.
Initializes a new instance of class.
The pairs.
Initializes a new instance of class.
The query.
Initializes a new instance of class.
The URI
Gets the collection of form data.
The collection of form data.
The key.
Gets an enumerable that iterates through the collection.
The enumerable that iterates through the collection.
Gets the values of the collection of form data.
The values of the collection of form data.
The key.
Gets values associated with a given key. If there are multiple values, they're concatenated.
Values associated with a given key. If there are multiple values, they're concatenated.
Reads the collection of form data as a collection of name value.
The collection of form data as a collection of name value.
Gets an enumerable that iterates through the collection.
The enumerable that iterates through the collection.
class for handling HTML form URL-ended data, also known as application/x-www-form-urlencoded.
Initializes a new instance of the class.
Initializes a new instance of the class.
The instance to copy settings from.
Queries whether the can deserializean object of the specified type.
true if the can deserialize the type; otherwise, false.
The type to deserialize.
Queries whether the can serializean object of the specified type.
true if the can serialize the type; otherwise, false.
The type to serialize.
Gets the default media type for HTML form-URL-encoded data, which is application/x-www-form-urlencoded.
The default media type for HTML form-URL-encoded data
Gets or sets the maximum depth allowed by this formatter.
The maximum depth.
Gets or sets the size of the buffer when reading the incoming stream.
The buffer size.
Asynchronously deserializes an object of the specified type.
A whose result will be the object instance that has been read.
The type of object to deserialize.
The to read.
The for the content being read.
The to log events to.
Performs content negotiation. This is the process of selecting a response writer (formatter) in compliance with header values in the request.
Performs content negotiating by selecting the most appropriate out of the passed in formatters for the given request that can serialize an object of the given type.
The result of the negotiation containing the most appropriate instance, or null if there is no appropriate formatter.
The type to be serialized.
Request message, which contains the header values used to perform negotiation.
The set of objects from which to choose.
Specifies a callback interface that a formatter can use to log errors while reading.
Logs an error.
The path to the member for which the error is being logged.
The error message.
Logs an error.
The path to the member for which the error is being logged.
The error message to be logged.
Defines method that determines whether a given member is required on deserialization.
Determines whether a given member is required on deserialization.
true if should be treated as a required member; otherwise false.
The to be deserialized.
Represents the default used by . It uses the formatter's to select required members and recognizes the type annotation.
Initializes a new instance of the class.
The formatter to use for resolving required members.
Creates a property on the specified class by using the specified parameters.
A to create on the specified class by using the specified parameters.
The member info.
The member serialization.
Represents the class to handle JSON.
Initializes a new instance of the class.
Initializes a new instance of the class.
The instance to copy settings from.
Determines whether this can read objects of the specified .
true if objects of this can be read, otherwise false.
The type of object that will be read.
Determines whether this can write objects of the specified .
true if objects of this can be written, otherwise false.
The type of object that will be written.
Called during deserialization to get the .
The object used for serialization.
The type of object that will be serialized or deserialized.
Called during deserialization to get the .
The reader to use during deserialization.
The type of the object to read.
The stream from which to read.
The encoding to use when reading.
Called during serialization to get the .
The writer to use during serialization.
The type of the object to write.
The stream to write to.
The encoding to use when writing.
Gets the default media type for JSON, namely "application/json".
The for JSON.
Gets or sets a value indicating whether to indent elements when writing data.
true if to indent elements when writing data; otherwise, false.
Gets or sets the maximum depth allowed by this formatter.
The maximum depth allowed by this formatter.
Called during deserialization to read an object of the specified type from the specified stream.
The object that has been read.
The type of the object to read.
The stream from which to read.
The encoding to use when reading.
The logger to log events to.
Gets or sets a value indicating whether to use by default.
true if to by default; otherwise, false.
Called during serialization to write an object of the specified type to the specified stream.
The type of the object to write.
The object to write.
The stream to write to.
The encoding to use when writing.
Called during serialization to write an object of the specified type to the specified stream.
Returns .
The type of the object to write.
The object to write.
The stream to write to.
The for the content being written.
The transport context.
The token to monitor for cancellation.
Base class to handle serializing and deserializing strongly-typed objects using .
Initializes a new instance of the class.
Initializes a new instance of the class.
The instance to copy settings from.
Queries whether this can deserializean object of the specified type.
true if the can deserialize the type; otherwise, false.
The type to deserialize.
Queries whether this can serializean object of the specified type.
true if the can serialize the type; otherwise, false.
The type to serialize.
Gets the default value for the specified type.
The default value.
The type for which to get the default value.
Returns a specialized instance of the that can format a response for the given parameters.
Returns .
The type to format.
The request.
The media type.
Gets or sets the maximum number of keys stored in a T: .
The maximum number of keys.
Gets the mutable collection of objects that match HTTP requests to media types.
The collection.
Asynchronously deserializes an object of the specified type.
A whose result will be an object of the given type.
The type of the object to deserialize.
The to read.
The , if available. It may be null.
The to log events to.
Derived types need to support reading.
Asynchronously deserializes an object of the specified type.
A whose result will be an object of the given type.
The type of the object to deserialize.
The to read.
The , if available. It may be null.
The to log events to.
The token to cancel the operation.
Gets or sets the instance used to determine required members.
The instance.
Determines the best character encoding for reading or writing an HTTP entity body, given a set of content headers.
The encoding that is the best match.
The content headers.
Sets the default headers for content that will be formatted using this formatter. This method is called from the constructor. This implementation sets the Content-Type header to the value of mediaType if it is not null. If it is null it sets the Content-Type to the default media type of this formatter. If the Content-Type does not specify a charset it will set it using this formatters configured .
The type of the object being serialized. See .
The content headers that should be configured.
The authoritative media type. Can be null.
Gets the mutable collection of character encodings supported bythis .
The collection of objects.
Gets the mutable collection of media types supported bythis .
The collection of objects.
Asynchronously writes an object of the specified type.
A that will perform the write.
The type of the object to write.
The object value to write. It may be null.
The to which to write.
The if available. It may be null.
The if available. It may be null.
Derived types need to support writing.
Asynchronously writes an object of the specified type.
A that will perform the write.
The type of the object to write.
The object value to write. It may be null.
The to which to write.
The if available. It may be null.
The if available. It may be null.
The token to cancel the operation.
Derived types need to support writing.
Collection class that contains instances.
Initializes a new instance of the class.
Initializes a new instance of the class.
A collection of instances to place in the collection.
Adds the elements of the specified collection to the end of the .
The items that should be added to the end of the . The items collection itself cannot be , but it can contain elements that are .
Removes all items in the collection.
Helper to search a collection for a formatter that can read the .NET type in the given mediaType.
The formatter that can read the type. Null if no formatter found.
The .NET type to read
The media type to match on.
Helper to search a collection for a formatter that can write the .NET type in the given mediaType.
The formatter that can write the type. Null if no formatter found.
The .NET type to read
The media type to match on.
Gets the to use for application/x-www-form-urlencoded data.
The to use for application/x-www-form-urlencoded data.
Inserts the specified item at the specified index in the collection.
The index to insert at.
The item to insert.
Inserts the elements of a collection into the at the specified index.
The zero-based index at which the new elements should be inserted.
The items that should be inserted into the . The items collection itself cannot be , but it can contain elements that are .
Returns true if the type is one of those loosely defined types that should be excluded from validation.
true if the type should be excluded; otherwise, false.
The .NET to validate.
Gets the to use for JSON.
The to use for JSON.
Removes the item at the specified index.
The index of the item to remove.
Assigns the item at the specified index in the collection.
The index to insert at.
The item to assign.
Gets the to use for XML.
The to use for XML.
This class describes how well a particular matches a request.
Initializes a new instance of the class.
The matching formatter.
The media type. Can be null in which case the media type application/octet-stream is used.
The quality of the match. Can be null in which case it is considered a full match with a value of 1.0
The kind of match.
Gets the media type formatter.
Gets the matched media type.
Gets the quality of the match
Gets the kind of match that occurred.
Contains information about the degree to which a matches the explicit or implicit preferences found in an incoming request.
Matched on a type, meaning that the formatter is able to serialize the type.
Matched on an explicit “*/*” range in the Accept header.
Matched on an explicit literal accept header, such as “application/json”.
Matched on an explicit subtype range in an Accept header, such as “application/*”.
Matched on the media type of the entity body in the HTTP request message.
Matched on after having applied the various s.
No match was found
An abstract base class used to create an association between or instances that have certain characteristics and a specific .
Initializes a new instance of a with the given mediaType value.
The that is associated with or instances that have the given characteristics of the .
Initializes a new instance of a with the given mediaType value.
The that is associated with or instances that have the given characteristics of the .
Gets the that is associated with or instances that have the given characteristics of the .
Returns the quality of the match of the associated with request.
The quality of the match. It must be between 0.0 and 1.0. A value of 0.0 signifies no match. A value of 1.0 signifies a complete match.
The to evaluate for the characteristics associated with the of the .
Class that provides s from query strings.
Initializes a new instance of the class.
The name of the query string parameter to match, if present.
The value of the query string parameter specified by queryStringParameterName.
The to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.
Initializes a new instance of the class.
The name of the query string parameter to match, if present.
The value of the query string parameter specified by queryStringParameterName.
The media type to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.
Gets the query string parameter name.
Gets the query string parameter value.
Returns a value indicating whether the current instance can return a from request.
If this instance can produce a from request it returns 1.0 otherwise 0.0.
The to check.
This class provides a mapping from an arbitrary HTTP request header field to a used to select instances for handling the entity body of an or . <remarks>This class only checks header fields associated with for a match. It does not check header fields associated with or instances.</remarks>
Initializes a new instance of the class.
Name of the header to match.
The header value to match.
The to use when matching headerValue.
if set to true then headerValue is considered a match if it matches a substring of the actual header value.
The to use if headerName and headerValue is considered a match.
Initializes a new instance of the class.
Name of the header to match.
The header value to match.
The value comparison to use when matching headerValue.
if set to true then headerValue is considered a match if it matches a substring of the actual header value.
The media type to use if headerName and headerValue is considered a match.
Gets the name of the header to match.
Gets the header value to match.
Gets the to use when matching .
Gets a value indicating whether is a matched as a substring of the actual header value. this instance is value substring.
truefalse
Returns a value indicating whether the current instance can return a from request.
The quality of the match. It must be between 0.0 and 1.0. A value of 0.0 signifies no match. A value of 1.0 signifies a complete match.
The to check.
A that maps the X-Requested-With http header field set by AJAX XmlHttpRequest (XHR) to the media type application/json if no explicit Accept header fields are present in the request.
Initializes a new instance of class
Returns a value indicating whether the current instance can return a from request.
The quality of the match. A value of 0.0 signifies no match. A value of 1.0 signifies a complete match and that the request was made using XmlHttpRequest without an Accept header.
The to check.
class to handle Xml.
Initializes a new instance of the class.
Initializes a new instance of the class.
The instance to copy settings from.
Queries whether the can deserializean object of the specified type.
true if the can deserialize the type; otherwise, false.
The type to deserialize.
Queries whether the can serializean object of the specified type.
true if the can serialize the type; otherwise, false.
The type to serialize.
Called during deserialization to get the DataContractSerializer serializer.
The object used for serialization.
The type of object that will be serialized or deserialized.
Called during deserialization to get the XML reader to use for reading objects from the stream.
The to use for reading objects.
The to read from.
The for the content being read.
Called during deserialization to get the XML serializer.
The object used for serialization.
The type of object that will be serialized or deserialized.
Called during serialization to get the XML writer to use for writing objects to the stream.
The to use for writing objects.
The to write to.
The for the content being written.
Gets the default media type for the XML formatter.
The default media type, which is “application/xml”.
Called during deserialization to get the XML serializer to use for deserializing objects.
An instance of or to use for deserializing the object.
The type of object to deserialize.
The for the content being read.
Called during serialization to get the XML serializer to use for serializing objects.
An instance of or to use for serializing the object.
The type of object to serialize.
The object to serialize.
The for the content being written.
Gets or sets a value indicating whether to indent elements when writing data.
true to indent elements; otherwise, false.
This method is to support infrastructure and is not intended to be used directly from your code.
Returns .
This method is to support infrastructure and is not intended to be used directly from your code.
Returns .
This method is to support infrastructure and is not intended to be used directly from your code.
Returns .
This method is to support infrastructure and is not intended to be used directly from your code.
Returns .
Gets and sets the maximum nested node depth.
The maximum nested node depth.
Called during deserialization to read an object of the specified type from the specified readStream.
A whose result will be the object instance that has been read.
The type of object to read.
The from which to read.
The for the content being read.
The to log events to.
Unregisters the serializer currently associated with the given type.
true if a serializer was previously registered for the type; otherwise, false.
The type of object whose serializer should be removed.
Registers an to read or write objects of a specified type.
The instance.
The type of object that will be serialized or deserialized with.
Registers an to read or write objects of a specified type.
The type of object that will be serialized or deserialized with.
The instance.
Registers an to read or write objects of a specified type.
The type of object that will be serialized or deserialized with.
The instance.
Registers an to read or write objects of a specified type.
The instance.
The type of object that will be serialized or deserialized with.
Gets or sets a value indicating whether the XML formatter uses the as the default serializer, instead of using the .
If true, the formatter uses the by default; otherwise, it uses the by default.
Gets the settings to be used while writing.
The settings to be used while writing.
Called during serialization to write an object of the specified type to the specified writeStream.
A that will write the value to the stream.
The type of object to write.
The object to write.
The to which to write.
The for the content being written.
The .
The token to monitor cancellation.
Represents the event arguments for the HTTP progress.
Initializes a new instance of the class.
The percentage of the progress.
The user token.
The number of bytes transferred.
The total number of bytes transferred.
Generates progress notification for both request entities being uploaded and response entities being downloaded.
Initializes a new instance of the class.
Initializes a new instance of the class.
The inner message handler.
Occurs when event entities are being downloaded.
Occurs when event entities are being uploaded.
Raises the event that handles the request of the progress.
The request.
The event handler for the request.
Raises the event that handles the response of the progress.
The request.
The event handler for the request.
Sends the specified progress message to an HTTP server for delivery.
The sent progress message.
The request.
The cancellation token.
Provides value for the cookie header.
Initializes a new instance of the class.
Initializes a new instance of the class.
The value of the name.
The values.
Initializes a new instance of the class.
The value of the name.
The value.
Creates a shallow copy of the cookie value.
A shallow copy of the cookie value.
Gets a collection of cookies sent by the client.
A collection object representing the client’s cookie variables.
Gets or sets the domain to associate the cookie with.
The name of the domain to associate the cookie with.
Gets or sets the expiration date and time for the cookie.
The time of day (on the client) at which the cookie expires.
Gets or sets a value that specifies whether a cookie is accessible by client-side script.
true if the cookie has the HttpOnly attribute and cannot be accessed through a client-side script; otherwise, false.
Gets a shortcut to the cookie property.
The cookie value.
Gets or sets the maximum age permitted for a resource.
The maximum age permitted for a resource.
Gets or sets the virtual path to transmit with the current cookie.
The virtual path to transmit with the cookie.
Gets or sets a value indicating whether to transmit the cookie using Secure Sockets Layer (SSL)—that is, over HTTPS only.
true to transmit the cookie over an SSL connection (HTTPS); otherwise, false.
Returns a string that represents the current object.
A string that represents the current object.
Indicates a value whether the string representation will be converted.
true if the string representation will be converted; otherwise, false.
The input value.
The parsed value to convert.
Contains cookie name and its associated cookie state.
Initializes a new instance of the class.
The name of the cookie.
Initializes a new instance of the class.
The name of the cookie.
The collection of name-value pair for the cookie.
Initializes a new instance of the class.
The name of the cookie.
The value of the cookie.
Returns a new object that is a copy of the current instance.
A new object that is a copy of the current instance.
Gets or sets the cookie value with the specified cookie name, if the cookie data is structured.
The cookie value with the specified cookie name.
Gets or sets the name of the cookie.
The name of the cookie.
Returns the string representation the current object.
The string representation the current object.
Gets or sets the cookie value, if cookie data is a simple string value.
The value of the cookie.
Gets or sets the collection of name-value pair, if the cookie data is structured.
The collection of name-value pair for the cookie.