MCPcopy
hub / github.com/Effect-TS/effect / setHeaders

Method setHeaders

packages/platform/src/HttpApiEndpoint.ts:190–190  ·  view source on GitHub ↗

* Set the schema for the headers of the endpoint. The schema will be * used to validate the headers before the handler is called.

(
    schema: H & HttpApiEndpoint.ValidateHeaders<H>
  )

Source from the content-addressed store, hash-verified

188 * used to validate the headers before the handler is called.
189 */
190 setHeaders<H extends Schema.Schema.Any>(
191 schema: H & HttpApiEndpoint.ValidateHeaders<H>
192 ): HttpApiEndpoint<
193 Name,

Callers 11

HttpApi.test.tsFile · 0.80
UsersApiClass · 0.80
UsersApiClass · 0.80
makeFunction · 0.80
makeFunction · 0.80
makeClientFunction · 0.80
OpenApi.test.tsFile · 0.80
HttpClient.test.tsFile · 0.80
onEndpointFunction · 0.80
preResponseHandlerFunction · 0.80
makeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected