pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn basic_auth(&mut self, username: &str, password: &str)
Available on crate feature
basic-auth only.pub fn basic_auth_from_uri(&mut self) -> Result<(), Error>
Available on crate feature
basic-auth only.pub fn with_basic_auth(&mut self)
Available on crate feature
basic-auth only.Sourcepub fn set_response_size_limit(&mut self, response_size_limit: Option<usize>)
pub fn set_response_size_limit(&mut self, response_size_limit: Option<usize>)
Set a size limit for the response.
This may be exceeded by a single HTTP frame and accordingly isn’t perfect.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Request
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
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