Skip to content

entity

entity<T>(req): T

Defined in: src/http/Marshalling.ts:48

Decode the request body into a typed value. Throws an HTTP 400 if the body is malformed. Returns undefined for empty bodies.

T = unknown

HttpRequest

T