Expand description
Request body extractors.
JsonOrForm accepts a request body as EITHER application/json OR
application/x-www-form-urlencoded (defaulting to JSON when the
Content-Type is absent/unknown), so endpoints built with
crate::http::BackboneCrudHandler — and any handler using it — work with
both content types. Drop-in replacement for Json(x): Json<T> /
Form(x): Form<T> in handler signatures and route closures.
Structs§
- Json
OrForm - Body extractor that accepts JSON or url-encoded form data.