Provides access to the HTTP response in order to access and respond to the additional information made available for requests over the HTTP protocol.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
This is a general-purpose class that gives you direct access to the HTTP response information, which could be used for encapsulation of HTTP-specific information. One use of this class is to support services implemented in accordance with the Representational State Transfer (REST) architecture.
This class enables you to support the following scenarios:
Controls whether an entity body is transmitted.
Allows HTTP header (key, value) pairs to be set for each response.
Varies the status code and status description used for each response.
This class can be used by HttpTransportBindingElement and related classes.
This shows how to use create an instance of the HttpResponseProperty class and modify some of its members:
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC