Skip to main content

Module body

Module body 

Source
Expand description

Request body parsing.

Supports JSON (application/json) and form-urlencoded (application/x-www-form-urlencoded) request bodies. Empty bodies are treated as empty JSON objects.

Enums§

BodyError

Functions§

content_type
Extract content type from headers (just the media type, no parameters).
parse_body
Parse request body bytes into a JSON Value based on content type.