MCPcopy Create free account
hub / github.com/Effect-TS/effect / withHeaders

Function withHeaders

packages/effect/src/unstable/httpapi/HttpApiSchema.ts:584–591  ·  view source on GitHub ↗
(options: {
  readonly body: A
  readonly headers: H
})

Source from the content-addressed store, hash-verified

582 * @since 4.0.0
583 */
584export const withHeaders = <A, H>(options: {
585 readonly body: A
586 readonly headers: H
587}): withHeaders<A, H> => ({
588 [WithHeadersValueTypeId]: WithHeadersValueTypeId,
589 body: options.body,
590 headers: options.headers
591})
592
593/**
594 * Returns `true` when a schema is a `WithHeaders` response schema.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected