pub struct HttpInfo {
pub url: String,
pub status_code: u16,
pub headers: Vec<(String, String)>,
pub content_type: Option<String>,
pub redirect_count: u32,
pub body: String,
}Expand description
HTTP response information.
Fields§
§url: StringThe final URL after following redirects
status_code: u16HTTP status code
headers: Vec<(String, String)>Response headers
content_type: Option<String>Content-Type header value
redirect_count: u32Number of redirects followed.
Note: This is currently always 0 as reqwest doesn’t expose redirect count directly. The field is retained for API compatibility and potential future implementation.
body: StringResponse body as string
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpInfo
impl<'de> Deserialize<'de> for HttpInfo
Source§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
Auto Trait Implementations§
impl Freeze for HttpInfo
impl RefUnwindSafe for HttpInfo
impl Send for HttpInfo
impl Sync for HttpInfo
impl Unpin for HttpInfo
impl UnwindSafe for HttpInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more