Loading...
Loading...
The incoming HTTP request in a handler or action: URI, headers, route params, and typed body parsing - body::<T>() decodes a JSON body, form_data::<T>() decodes a url-encoded form. Both return Result<T, BodyParseError>.
Read route params and headers:
Parse a JSON body with body::<T>():
Parse a url-encoded form (application/x-www-form-urlencoded) with form_data::<T>():