pub struct Response<T> {
pub depth: usize,
pub request_url: Url,
pub response_url: Url,
pub response_status: StatusCode,
pub response_headers: HeaderMap,
pub text: String,
pub state: Option<T>,
}
Expand description
A successful response for an issued request
Fields
depth: usize
The depth of the request that was issued for this
request_url: Url
The url of the request that was issued.
response_url: Url
The url of the response as received
response_status: StatusCode
The status code of the response
response_headers: HeaderMap
The headers of the received response
text: String
The full response text.
state: Option<T>
The attached state of the scraper