Response MembersC# API

The Response type exposes the following members.
Constructors

  NameDescription
Public methodResponse
For internal use only. Of no interest to the user.
Back to Top
Methods

  NameDescription
Public methodContainsHeader
Determines whether this Response contains a particular HTTP response header.
Public methodDispose
Releases all resources used by the Response
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExtract(List String , String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(List String , String, ActionType)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(List String , String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(List String , String, String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(String, String, ActionType)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(String, String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(ExtractionCursor, List String , String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(ExtractionCursor, String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(List String , String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodExtract(List String , String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(String, String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and specifying what action to take in case of failure.
Public methodExtract(String, String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, List String , String, ActionType)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(ExtractionCursor, List String , String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, List String , String, String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(ExtractionCursor, String, String, ActionType)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(ExtractionCursor, String, String, SearchFlags)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(ExtractionCursor, String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, String, String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(ExtractionCursor, List String , String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodExtract(ExtractionCursor, List String , String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, String, String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and specifying what action to take in case of failure.
Public methodExtract(ExtractionCursor, String, String, SearchFlags, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, String, String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtractForm(Int32)
Extracts the nth HTML Form from the response content.
Public methodExtractForm(String)
Extracts an HTML Form with the specified formName from the response content.
Public methodExtractForm(Int32, ActionType)
Extracts the nth HTML Form from the response content, and take the specified failAction if no matching form can be found.
Public methodExtractForm(String, ActionType)
Extracts an HTML Form with the specified formName from the response content, and take the specified failAction if no matching form can be found.
Public methodExtractForms
Extracts all the HTML Form objects from the response content.
Public methodExtractFromEnd(List String , String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, ActionType)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String, ActionType)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, ActionType, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String, ActionType, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, ActionType)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, ActionType)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned. If either value cannot be found, the defaultValue will be returned.
Public methodExtractFromEnd(List String , String, ActionType, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String, ActionType, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, ActionType, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, ActionType, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned. If either value cannot be found, the defaultValue will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, ActionType, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, ActionType, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned. If either value cannot be found, the defaultValue will be returned.
Public methodExtractList(String, String)
Extracts a list of items from this Response.
Public methodExtractList(String, String, Boolean)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive.
Public methodExtractList(ExtractionCursor, String, String)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(String, String, Boolean, Int32)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags)
Extracts a list of items from this Response.
Public methodExtractList(ExtractionCursor, String, String, String)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags, String)
Extracts a list of items from this Response.
Public methodExtractList(ExtractionCursor, String, String, String, Boolean)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags, String, Boolean)
Extracts a list of items from this Response.
Public methodExtractList(ExtractionCursor, String, String, String, Boolean, Int32)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags, String, Boolean, Int32)
Extracts a list of items from this Response.
Public methodExtractRegExp(ExtractionCursor, String)
Extracts multiple string objects from the response content, wherever the specified regular expression matches.
Public methodExtractRegExp(ExtractionCursor, String, Boolean)
Extracts multiple string objects from the response content, wherever the specified regular expression matches, and specifying whether the search will be case-sensitive.
Public methodExtractRegExp(ExtractionCursor, String, String, SearchFlags)
Extracts text from the response content - everything between (but not including) the specified beforeRegExp and afterRegExp string objects - returning an empty string if they cannot be found.
Public methodExtractRegExp(ExtractionCursor, String, String, SearchFlags, Boolean)
Extracts text from the response content - everything between (but not including) the specified beforeRegExp and afterRegExp string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtractXPath
Returns a string object from the HTML or XML response content that matches the given XPath expression.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind(ExtractionCursor, String)
Finds the specified text within this Response.
Public methodFind(ExtractionCursor, String, ActionType)
Finds the specified text within this Response, specifying what action to take in case of failure.
Public methodFind(ExtractionCursor, String, Boolean)
Finds the specified text within this Response, specifying whether the search will be case-sensitive.
Public methodFind(ExtractionCursor, String, ActionType, Boolean)
Finds the specified text within this Response, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodGetAnchor
Gets the nth anchor in this Response.
Public methodStatic membergetCPtr
For internal use only. Of no interest to the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeaderValue(String)
Gets the value of an HTTP response header contained in this Response.
Public methodGetHeaderValue(String, Int32)
Gets the value of the nth instance of an HTTP response header contained in this Response.
Public methodGetRedirectedFrom
Gets the Response from which this Response has been redirected.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResetCharEncoding
Resets the character encoding that is used to decode the data contained in this Response. This will force the character encoding to be re-calculated, using the methods described in SetCharEncoding(String).
Public methodRfind(ExtractionCursor, String)
Finds the specified text within this Response, starting from the end of the content.
Public methodRfind(ExtractionCursor, String, ActionType)
Finds the specified text within this Response, starting from the end of the content, specifying what action to take in case of failure.
Public methodRfind(ExtractionCursor, String, Boolean)
Finds the specified text within this Response, starting from the end of the content, and specifying whether the search will be case-sensitive.
Public methodRfind(ExtractionCursor, String, ActionType, Boolean)
Finds the specified text within this Response, starting from the end of the content, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodSetCharEncoding
Sets the character encoding that is used to decode the data contained in this Response.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerifyContains(String)
Determines whether the content of this Response contains the specified text.
Public methodVerifyContains(String, ActionType)
Determines whether the content of this Response contains the specified text, specifying what action to take in case of failure.
Public methodVerifyContains(String, Boolean)
Determines whether the content of this Response contains the specified text, specifying whether the search will be case-sensitive.
Public methodVerifyContains(String, ActionType, Boolean)
Determines whether the content of this Response contains the specified text, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodVerifyResult(HttpStatus)
Verify that the response code of this Response matches the specifed expectedResult
Public methodVerifyResult(HttpStatus, ActionType)
Verify that the response code of this Response matches the specifed expectedResult, and takes the specified action if it does not.
Public methodVerifyTitle(String)
Verifies that the title of this Response page matches the specified title.
Public methodVerifyTitle(String, ActionType)
Verifies that the title of this Response page matches the specified title, and takes the specified action if it does not.
Back to Top
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