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. |
Operations
kind:member
SchemaRequest.json schema request cancellationToken
MemberParses the JSON request body through the schema; a missing body parses as missing input.
Parameters
| Name | Type | Description |
|---|
| schema | Schema<'model> | |
| request | IRequest | |
| cancellationToken | CancellationToken | |
Returns
ValueTask<RetainedParseResult<'model>>
kind:member
SchemaRequest.query schema request
MemberParses the query string through the schema.
Parameters
| Name | Type | Description |
|---|
| schema | Schema<'model> | |
| request | IRequest | |
Returns
RetainedParseResult<'model>