-
Notifications
You must be signed in to change notification settings - Fork 94
Response Object
Home > API > Response-Object
Response objects store information about a HTTP response.
response.allHeaders
Returns an array of Header objects
response.fetchFailed
Returns a boolean value indicating if the scanner failed to retrieve the request
response.document
Returns an HtmlDocument object if the response content is HTML, null otherwise.
response.code
Returns the HTTP response status code as an integer.
response.originalRequest
Returns the Request object which was sent.
response.rawResponse
Returns the HttpResponse object.
response.host
Returns the HttpHost describing the host the request was sent to.
response.bodyAsString
Returns the body of the response as a String, or null if no response body is available.
response.mostlyAscii
Returns true if the response body appears to be text rather than binary.
response.fingerprint
Returns the IPageFingerPrint of the response body.
response.milliseconds
Returns the time in milliseconds between sending the request and receiving the response.
response.hasHeader(name)
Returns true if a HTTP header exists with the specified name.
response.getFirstHeader(name)
Returns the first Header with the specified name, or null if no such header exists.
response.getHeaders(name)
Returns an array of Header objects for the given name. If no such headers exist, returns an empty array.
Home > API > Response-Object
Have feedback on Vega? Our documentation? Please tell us.