Skip to main content

Module args

Module args 

Source

Structsยง

Args ๐Ÿ”’
Extracts a typed Ruma request and its authentication context.

Functionsยง

authenticate ๐Ÿ”’
Authenticates a request while retaining the headers consumed by extraction.
make_args ๐Ÿ”’
Builds typed arguments after authentication and any UIA body merge.
parse_json ๐Ÿ”’
Parses canonical JSON while retaining ordinary JSON for typed deserialization.
record_auth_context ๐Ÿ”’
restore_body ๐Ÿ”’
Restores omitted fields from a UIA session before typed body parsing.
serialize_body ๐Ÿ”’
Serializes a canonical body directly into the HTTP byte buffer.

Type Aliasesยง

ArgsAdmin ๐Ÿ”’
Requires administrator authorization before returning request body errors.