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 body: Body,
pub variables: HashMap<String, String>,
}
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
HTTP method of the request
url: String
URL of the request
http_version: Version
HTTP version of the request
metadata: HashMap<String, String>
Metadata of the request file
headers: HeaderMap
Headers of the request
query_params: Vec<(String, String)>
Query parameters of the request
body: Body
Body of the request
variables: HashMap<String, String>
Variables to provide values for placeholders in the request
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