pub struct Response { /* private fields */ }
Implementations§
Source§impl Response
impl Response
pub fn ok(&self) -> bool
pub fn is_redirect(&self) -> bool
pub fn code(&self) -> u32
pub fn version(&self) -> &String
pub fn reason(&self) -> &String
pub fn host(&self) -> &str
pub fn body(&self) -> &ResponseBody
pub fn binary(&self) -> &[u8] ⓘ
pub fn location(&self) -> Option<&String>
pub fn headers(&self) -> &Vec<Header>
pub fn headers_of_name<S: AsRef<str>>(&self, name: S) -> Vec<&Header>
pub fn header<S: AsRef<str>>(&self, name: S) -> Option<&Header>
pub fn header_values<S: AsRef<str>>(&self, name: S) -> Vec<&String>
pub fn header_value<S: AsRef<str>>(&self, name: S) -> Option<&String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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