Module flexible_form

Source
Expand description

Axum extractor that can handle both application/x-www-form-urlencoded and multipart/form-data content types, using axum::Form and axum_typed_multipart::TypedMultipart internally.

It will only work for forms that do not have file uploads, as those are represented as Bytes objects which can’t be deserialized. For those, just use TypedMultipart.

Structs§

FlexibleForm
UnsupportedContentTypeRejection
Custom rejection for unsupported content types.

Enums§

FlexibleFormRejection