Interface JsonParsing<TInput, TBody>

JSON request body parsing capability.

Attempts to parse requested data as JSON, and optionally transforms it to another type.

Responds with 415 (Unsupported Media Type) status code if request has content type specified, and it is not application/json, text/json, or text/plain.

Responds with 400 (Bad Request) status code if failed to parse JSON.

Type Parameters

  • TInput extends HttpMeans = HttpMeans

    Input HTTP request processing means.

  • TBody = any

    Request body type.

Hierarchy

Methods

Methods

Generated using TypeDoc