WebTestResponse Properties
Include Protected Members
Include Inherited Members
The WebTestResponse type exposes the following members.
Properties
Name | Description | |
---|---|---|
BodyBytes | Gets the raw bytes of the HTTP response body. | |
BodyString | Gets a string version of the response body for responses with text, HTML, or XML content types. | |
CharacterSet | Gets the character set that is specified in the response headers. | |
ContentEncoding | Gets the method that is used to encode the body of the response. | |
ContentLength | Gets the length of the content that is returned by the request. | |
ContentType | Gets the MIME type of the response body. | |
Cookies | Gets the cookies associated with the response. | |
Guid | ||
Headers | Gets the headers associated with the response from the server. | |
HtmlDocument | Gets the HtmlDocument created by parsing the response body of a response with HTML or XHTML content type. | |
IsBodyEmpty | Gets a value indicating whether the response body is empty. | |
IsHtml | Gets a value indicating whether the response body is an HTML document. | |
IsText | Gets a value indicating whether the response body is a text document. | |
IsXml | Gets a value that indicates whether the response is XML. | |
LastModified | Gets the last date and time that the contents of the response were modified. | |
Method | Gets the method that is used to return the response. | |
ProtocolVersion | Gets the version of the HTTP protocol that is used in the response. | |
ResponseUri | Gets the URI of the Internet resource that responded to the request. | |
Server | Gets the name of the server that sent the response. | |
Statistics | Gets detailed information gathered during the execution of the request. | |
StatusCode | Gets the status of the response. | |
StatusDescription | Gets the status description returned with the response. | |
XmlDocument | Gets a XmlDocument representing the response body if the content type indicated the response was XML. |
Top