pub struct HTTP1Request {
pub path: Uri,
pub method: Method,
pub headers: HeaderMap,
pub body: Vec<u8>,
}Expand description
An HTTP/1.1 request
Fields§
§path: Uri§method: Method§headers: HeaderMap§body: Vec<u8>Trait Implementations§
Source§impl Clone for HTTP1Request
impl Clone for HTTP1Request
Source§fn clone(&self) -> HTTP1Request
fn clone(&self) -> HTTP1Request
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HTTP1Request
impl Debug for HTTP1Request
Source§impl<Svc, SvcError, SvcFut> Service<HTTP1Request> for ProtoHttp1ClientLayer<Svc>
impl<Svc, SvcError, SvcFut> Service<HTTP1Request> for ProtoHttp1ClientLayer<Svc>
Source§type Response = HTTP1ClientResponse<ReadHalf<SimplexStream>, WriteHalf<SimplexStream>>
type Response = HTTP1ClientResponse<ReadHalf<SimplexStream>, WriteHalf<SimplexStream>>
The response is handled by the protocol
Source§type Error = ProtoHttp1LayerError<SvcError>
type Error = ProtoHttp1LayerError<SvcError>
Errors would be failures in parsing the protocol - this should be handled by the protocol
Source§type Future = Pin<Box<dyn Future<Output = Result<<ProtoHttp1ClientLayer<Svc> as Service<HTTP1Request>>::Response, <ProtoHttp1ClientLayer<Svc> as Service<HTTP1Request>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ProtoHttp1ClientLayer<Svc> as Service<HTTP1Request>>::Response, <ProtoHttp1ClientLayer<Svc> as Service<HTTP1Request>>::Error>> + Send>>
The future is the protocol itself
Source§fn call(&mut self, request: HTTP1Request) -> Self::Future
fn call(&mut self, request: HTTP1Request) -> Self::Future
Indefinitely process the protocol
Source§impl<Writer> WriteTo<Writer, ()> for HTTP1Request
impl<Writer> WriteTo<Writer, ()> for HTTP1Request
Auto Trait Implementations§
impl !Freeze for HTTP1Request
impl RefUnwindSafe for HTTP1Request
impl Send for HTTP1Request
impl Sync for HTTP1Request
impl Unpin for HTTP1Request
impl UnwindSafe for HTTP1Request
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