pub struct Request {
pub url: Url,
pub path: String,
pub input: Option<String>,
pub peer: SocketAddr,
}Expand description
One guppy request, as handed to a Handler.
Fields§
§url: UrlThe requested URL, verbatim.
path: StringThe URL’s path (/ for an empty path).
input: Option<String>The URL’s query component, percent-decoded: the user’s input from the prompt flow, if any.
peer: SocketAddrThe client’s socket address.
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 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