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

Function prefix

packages/platform/src/HttpApi.ts:196–204  ·  view source on GitHub ↗
(this: HttpApi.AnyWithProps, prefix: HttpApiEndpoint.PathSegment)

Source from the content-addressed store, hash-verified

194 })
195 },
196 prefix(this: HttpApi.AnyWithProps, prefix: HttpApiEndpoint.PathSegment) {
197 return makeProto({
198 identifier: this.identifier,
199 groups: Record.map(this.groups, (group) => group.prefix(prefix)),
200 errorSchema: this.errorSchema,
201 annotations: this.annotations,
202 middlewares: this.middlewares
203 })
204 },
205 middleware(this: HttpApi.AnyWithProps, tag: HttpApiMiddleware.TagClassAny) {
206 return makeProto({
207 identifier: this.identifier,

Callers

nothing calls this directly

Calls 3

makeProtoFunction · 0.70
mapMethod · 0.65
prefixMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…