Class wrapper of an HTTP response.
Inheritance Hierarchy
ArtOfTest.WebAii.Messaging.HttpHttpResponse
Namespace: ArtOfTest.WebAii.Messaging.Http
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The HttpResponse type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HttpResponse |
Internal use only. Required for serialization.
| |
HttpResponse(HttpResponse) |
Copy constructor
| |
HttpResponse(Int32, HttpRequest) |
Create a response object containing an error message
|
Properties
Name | Description | |
---|---|---|
Content |
Gets or sets the message body. To remove the body from a message, set Content to null.
| |
Guid |
Gets the unique identifier for this request object
| |
Headers |
Gets / Sets the response headers
| |
HttpVersion |
Gets the HTTP version string the server used for this response
| |
IsImage |
Gets whether this response contains an image (according to its content-type header)
| |
IsXml |
Gets whether this response contains an XML document (according to its content-type header)
| |
MimeType |
Gets an array containing all the values specified as MIME types for the content of this response
| |
Request |
Gets the request object that caused this response
| |
StatusCode |
Gets / Sets the HTTP status code for this response
| |
StatusDescription |
Gets / Sets the status description string (e.g. "OK", "Not Found") for this response.
Note: Legacy content could include the preceding status code (e.g. "200 OK", "404 Not Found").
| |
Timestamp |
The time at which this response was received from the server
|
Methods
Name | Description | |
---|---|---|
AddHeader |
Adds a new header to this response's headers. If there is already a header by the same name, the value specified in thie call is added
to the list of values for the header.
| |
AppendHeader |
Adds a new header to this response's headers. If there is already a header by the same name, the value specified in thie call is added
to the list of values for the header.
| |
CleanUpConnectionOptions |
Strips out any headers matching the tokens listed in the Connection header, and removes all tokens from the Connection header.
| |
Clear |
Clears all headers and content output from the current response
| |
ClearContent |
Clears the content buffer for the current response
| |
ClearHeaders |
Clears all headers from the current response
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUnchunkedContent | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Gets the string representation of this object.
(Overrides ObjectToString.) | |
ToString(Boolean) |
Converts this HttpResponse to a string representation.
|
See Also