Response PropertiesC# API
The Response type exposes the following members.
Properties

  NameDescription
Public propertyBytesDownloaded
Gets the number of bytes downloaded from the server.
Public propertyCharEncoding
Gets or sets the character encoding that is used to decode the data contained in this Response, for example "UTF-8".
Public propertyCharSet
Gets the value of the "charset" parameter specified in the "Content-Type" HTTP response header.
Public propertyContent
Gets the content of this Response, using the current encoding (as defined by CharEncoding) to decode the data.
Public propertyContentAsJson
Gets a OnlineNewtonsoft JSON object representation of this Response.
Public propertyContentAsXml
Gets an XML DOM representation of this Response.
Public propertyContentEncoding
Gets the value of the "Content-Encoding" HTTP response header.
Public propertyContentLength
Gets the length in bytes of the response content.
Public propertyContentType
Gets the value of the "Content-Type" HTTP response header.
Public propertyHasReferer
Gets a value that indicates whether this Response contains an HTTP "Referer" response header.
Public propertyHasTitle
Gets a value that indicates whether this Response contains an HTML title.
Public propertyHeaderKeys
Gets a list of names of all the HTTP response headers set in this Response.
Public propertyMessageBody
Gets the body of the message from the corresponding Request.
Public propertyMethod
Gets the HttpMethod that was used to send the Request.
Public propertyRawContent
Gets the raw content of this Response. If the content is expected to be text, then you should use Content instead of this property.
Public propertyReceiveTime
Gets the time at which the response was received from the server (measured in milliseconds since the start of the test).
Public propertyRedirectedFrom
Gets the Response from which this Response has been redirected.
Public propertyReferer
Gets the value of the "Referer" HTTP response header.
Public propertyResult
Gets the HTTP status code received from the server when this Response was served.
Public propertyResultString
Gets the HTTP result returned by the server, e.g. HTTP/1.1 200 OK
Public propertySendTime
Gets the time at which the request was sent to the server (measured in milliseconds since the start of the test).
Public propertySubResponses
Gets a list of Response objects that describe HTTP responses to sub-requests associated with the top-level Request sent to the web server.
Public propertyTitle
Gets the HTML title of this Response. Gets a value that determines whether this Response contains an HTML title.
Public propertyUrl
Gets the Url that was used in the corresponding Request.
Public propertyUrlString
Gets the URL that was used in the corresponding Request, as a string.
Public propertyUserAgent
Gets the value of the "User-Agent" HTTP response header.
Public propertyVersion
Gets the version of HTTP that was used to send this response
Public propertyWasRedirected
Gets a value that indicates whether this Response was the result of a redirected request.
Back to Top
See Also