pub struct Request {
pub method: String,
pub target: String,
pub headers: Headers,
pub body: Vec<u8>,
pub peer: Option<SocketAddr>,
pub client_id: Option<String>,
}Expand description
a request as the server sees it (and as the client sends it)
Fields§
§method: String§target: Stringpath and query, as sent (“/api/jobs?limit=5”)
headers: Headers§body: Vec<u8>§peer: Option<SocketAddr>the remote address (server side)
client_id: Option<String>the identity the transport proved (TLS client certificate), if any
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Requestwhere
RawVecInner: Send,
impl Sync for Requestwhere
RawVecInner: Sync,
impl Unpin for Request
impl UnsafeUnpin for Requestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Requestwhere
RawVecInner: UnwindSafe,
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