Struct gdhttp::HttpRequest
source · pub struct HttpRequest {
pub method: HttpMethod,
pub path: String,
}Expand description
Struct representing HTTP Protocol request
Fields§
§method: HttpMethodHTTP method used in request (GET, POST, …)
path: Stringrequested path (ex. /, /about-me)
Auto Trait Implementations§
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
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