Skip to main content

form_response

Function form_response 

Source
pub fn form_response(
    body: FormBody,
) -> Result<Response<Full<Bytes>>, OxiHttpError>
Expand description

Build an application/x-www-form-urlencoded response from a oxihttp_core::FormBody.

The form body is serialized to bytes and returned with status 200 OK and Content-Type: application/x-www-form-urlencoded.