SchemaRequestModule
PackageAxial.Hosting.GenHttp
Parses GenHTTP requests into RetainedParseResult`1 through a schema.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| json | SchemaRequest.json schema request cancellationToken | Parses the JSON request body through the schema; a missing body parses as missing input. |
| query | SchemaRequest.query schema request | Parses the query string through the schema. |
| isForm | SchemaRequest.isForm request | Returns true when the request body is application/x-www-form-urlencoded. |
| form | SchemaRequest.form schema request cancellationToken | Parses an application/x-www-form-urlencoded body through the schema; any other body parses as empty input. |
Operations
kind:member
kind:member
kind:member
kind:member
Parses an
application/x-www-form-urlencoded body through the schema; any other body parses as empty input.Parameters
| Name | Type | Description |
|---|---|---|
| schema | Schema<'model> | |
| request | IRequest | |
| cancellationToken | CancellationToken |
Returns
ValueTask<RetainedParseResult<'model>>

