MCPcopy Index your code
hub / github.com/Effect-TS/effect / setHeaders

Function setHeaders

packages/platform/src/HttpApiEndpoint.ts:797–802  ·  view source on GitHub ↗
(this: HttpApiEndpoint.AnyWithProps, schema: Schema.Schema.Any)

Source from the content-addressed store, hash-verified

795 })
796 },
797 setHeaders(this: HttpApiEndpoint.AnyWithProps, schema: Schema.Schema.Any) {
798 return makeProto({
799 ...this,
800 headersSchema: Option.some(schema)
801 })
802 },
803 prefix(this: HttpApiEndpoint.AnyWithProps, prefix: PathSegment) {
804 return makeProto({
805 ...this,

Callers 1

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected