Clov Packages
    Preparing search index...
    • Attaches response headers to a response schema, documented as the response's headers.

      Elysia does not validate response headers, this is documentation only.

      Type Parameters

      • const Schema extends AnySchema

      Parameters

      • schema: Schema

        The response body schema

      • headers: AnySchema

        An object schema of the headers

      Returns Schema

      A copy of schema carrying headers