This is a general-purpose class that gives the developer direct access to the HTTP request information, which can be used for encapsulating HTTP-specific information. One example of the use of this class is to support services implemented in accordance with the Representational State Transfer (REST) architecture.
This class enables support for the following scenarios:
Varies the HTTP verb used for each request.
Allows HTTP header (key, value) pairs to be set and queried by request.
Allows the query string to be specified for an HTTP request.
This class can be used by HttpTransportBindingElement and related classes.
For incoming messages, this property is added to messages.
For outgoing messages, this property causes the following to happen: