pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn new(method: Method, uri: impl Into<String>) -> Self
pub fn get(uri: impl Into<String>) -> Self
pub fn post(uri: impl Into<String>, body: impl Into<Vec<u8>>) -> Self
pub fn builder() -> RequestBuilder
pub fn header(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn body(self, body: impl Into<Vec<u8>>) -> Self
pub fn build(self) -> Self
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin 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