Struct upcake::StatResult [−][src]
pub struct StatResult {
pub http_version: String,
pub response_code: i32,
pub response_message: Option<String>,
pub headers: Vec<Header>,
pub timing: Timing,
pub content: ResponseContent,
}
Expand description
Wraps HttpstatResult
with more useful properties
Fields
http_version: String
HTTP version used
response_code: i32
HTTP response code from target host
response_message: Option<String>
HTTP response message from target host
headers: Vec<Header>
Response headers
timing: Timing
Timing data
content: ResponseContent
Possibly parsed response content
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for StatResult
impl Send for StatResult
impl Sync for StatResult
impl Unpin for StatResult
impl UnwindSafe for StatResult
Blanket Implementations
Mutably borrows from an owned value. Read more