pub struct Request<'a, S: State, V: Version, M: Method, B: BodyType> { /* private fields */ }Implementations§
source§impl<'a> Request<'a, SEND_LINE, HTTP_10, (), ()>
impl<'a> Request<'a, SEND_LINE, HTTP_10, (), ()>
pub fn get( self, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_10, GET, ()>, HootError>
pub fn head( self, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_10, HEAD, ()>, HootError>
pub fn post( self, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_10, POST, ()>, HootError>
source§impl<'a> Request<'a, SEND_LINE, HTTP_11, (), ()>
impl<'a> Request<'a, SEND_LINE, HTTP_11, (), ()>
pub fn get( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, GET, ()>, HootError>
pub fn head( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, HEAD, ()>, HootError>
pub fn post( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, POST, ()>, HootError>
pub fn put( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, PUT, ()>, HootError>
pub fn delete( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, DELETE, ()>, HootError>
pub fn connect( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, CONNECT, ()>, HootError>
pub fn options( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, OPTIONS, ()>, HootError>
pub fn trace( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, TRACE, ()>, HootError>
pub fn patch( self, host: &str, path: &str ) -> Result<Request<'a, SEND_HEADERS, HTTP_11, PATCH, ()>, HootError>
source§impl<'a, M: MethodWithRequestBody> Request<'a, SEND_HEADERS, HTTP_10, M, ()>
impl<'a, M: MethodWithRequestBody> Request<'a, SEND_HEADERS, HTTP_10, M, ()>
source§impl<'a, M: MethodWithRequestBody> Request<'a, SEND_HEADERS, HTTP_11, M, ()>
impl<'a, M: MethodWithRequestBody> Request<'a, SEND_HEADERS, HTTP_11, M, ()>
pub fn with_body( self, length: impl TryInto<u64> ) -> Result<Request<'a, SEND_BODY, HTTP_11, M, BODY_LENGTH>, HootError>
pub fn with_chunked( self ) -> Result<Request<'a, SEND_BODY, HTTP_11, M, BODY_CHUNKED>, HootError>
pub fn without_body( self ) -> Result<Request<'a, RECV_RESPONSE, HTTP_11, M, ()>, HootError>
source§impl<'a, V: Version, M: MethodWithoutRequestBody> Request<'a, SEND_HEADERS, V, M, ()>
impl<'a, V: Version, M: MethodWithoutRequestBody> Request<'a, SEND_HEADERS, V, M, ()>
source§impl<'a, V: Version, M: MethodWithRequestBody> Request<'a, SEND_BODY, V, M, BODY_LENGTH>
impl<'a, V: Version, M: MethodWithRequestBody> Request<'a, SEND_BODY, V, M, BODY_LENGTH>
source§impl<'a, V: Version, M: MethodWithRequestBody> Request<'a, SEND_BODY, V, M, BODY_CHUNKED>
impl<'a, V: Version, M: MethodWithRequestBody> Request<'a, SEND_BODY, V, M, BODY_CHUNKED>
source§impl<'a, V: Version, M: MethodWithRequestBody> Request<'a, SEND_TRAILER, V, M, BODY_CHUNKED>
impl<'a, V: Version, M: MethodWithRequestBody> Request<'a, SEND_TRAILER, V, M, BODY_CHUNKED>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S, V, M, B> RefUnwindSafe for Request<'a, S, V, M, B>
impl<'a, S, V, M, B> Send for Request<'a, S, V, M, B>
impl<'a, S, V, M, B> Sync for Request<'a, S, V, M, B>
impl<'a, S, V, M, B> Unpin for Request<'a, S, V, M, B>
impl<'a, S, V, M, B> !UnwindSafe for Request<'a, S, V, M, B>
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