pub struct Request {
pub url: Url,
pub method: Method,
pub headers: HeaderMap,
pub params: HashMap<String, String>,
pub body: Option<Vec<u8>>,
pub client_addr: SocketAddr,
/* private fields */
}Expand description
HTTP request
Fields§
§url: UrlURL
method: MethodMethod
headers: HeaderMapHeaders
params: HashMap<String, String>Parameters
body: Option<Vec<u8>>Body
client_addr: SocketAddrClient address
Implementations§
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 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