Struct thruster::Request [−][src]
pub struct Request { pub headers: SmallVec<[((usize, usize), (usize, usize)); 8]>, pub params: Option<HashMap<String, String>>, // some fields omitted }
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 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Request
impl UnwindSafe for Request