[−][src]Trait sputnik::request::SputnikParts
Required methods
fn query<X: DeserializeOwned>(&self) -> Result<X, QueryError>
[src]
Parses the query string of the request into a given struct.
fn cookies(&mut self) -> Arc<HashMap<String, Cookie<'static>>>
[src]
Parses the cookies of the request.
fn enforce_content_type(&self, mime: Mime) -> Result<(), WrongContentTypeError>
[src]
Enforces a specific Content-Type.
fn csrf_html_input(&mut self, builder: &mut Builder) -> String
[src]
Retrievs the CSRF token from a cookie or generates
a new token and stores it as a cookie if it doesn't exist.
Returns a hidden HTML input to be embedded in forms that are received
with crate::request::SputnikBody::into_form_csrf
.