Struct rede_parser::Request
source · pub struct Request {
pub method: Method,
pub url: String,
pub http_version: Version,
pub metadata: HashMap<String, String>,
pub headers: HeaderMap,
pub query_params: Vec<(String, String)>,
pub path_params: HashMap<String, String>,
pub body: Body,
}Expand description
Representation of a rede HTTP request. Contains all the supported content by the current schema to allow the creation and dispatching of the HTTP request with the command-line interface.
Fields§
§method: Method§url: String§http_version: Version§metadata: HashMap<String, String>§headers: HeaderMap§query_params: Vec<(String, String)>§path_params: HashMap<String, String>§body: BodyAuto 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