pub struct Request {
pub headers: SmallVec<[((usize, usize), (usize, usize)); 8]>,
pub params: Option<HashMap<String, String>>,
/* private fields */
}
Expand description
The request object is the default request object provied by Thruster. If a different server is used, such as Hyper, then you’ll need to reference that server’s “request” documentation instead.
Fields
headers: SmallVec<[((usize, usize), (usize, usize)); 8]>
params: Option<HashMap<String, String>>
Implementations
Get the raw pointer to the byte array of the request
Get an HashMap of the provided headers. The HashMap is lazily computed, so avoid this method unless you need to access headers.
Automatically apply a serde deserialization to the body
Reading body as json with given Deserialize struct