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

Function prefix

packages/effect/src/unstable/httpapi/HttpApi.ts:172–177  ·  view source on GitHub ↗
(this: Top, prefix: PathInput)

Source from the content-addressed store, hash-verified

170 })
171 },
172 prefix(this: Top, prefix: PathInput) {
173 return makeProto({
174 ...optionsFromApi(this),
175 groups: Record.map(this.groups, (group) => group.prefix(prefix))
176 })
177 },
178 middleware(this: Top, tag: HttpApiMiddleware.AnyService) {
179 return makeProto({
180 ...optionsFromApi(this),

Callers

nothing calls this directly

Calls 4

optionsFromApiFunction · 0.85
makeProtoFunction · 0.70
prefixMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected