MCPcopy Create free account
hub / github.com/effect-app/libs / makeProto

Function makeProto

repos/effect/packages/effect/src/unstable/httpapi/HttpApi.ts:180–192  ·  view source on GitHub ↗
(
  options: {
    readonly identifier: Id
    readonly groups: Record.ReadonlyRecord<string, Groups>
    readonly annotations: Context.Context<never>
  }
)

Source from the content-addressed store, hash-verified

178 middleware(this: Top, tag: HttpApiMiddleware.AnyService) {
179 return makeProto({
180 ...optionsFromApi(this),
181 groups: Record.map(this.groups, (group) => group.middleware(tag as any))
182 })
183 },
184 annotate(this: Top, key: Context.Key<any, any>, value: any) {
185 return makeProto({
186 ...optionsFromApi(this),
187 annotations: Context.add(this.annotations, key, value)
188 })
189 },
190 annotateMerge(this: Top, annotations: Context.Context<never>) {
191 return makeProto({
192 ...optionsFromApi(this),
193 annotations: Context.merge(this.annotations, annotations)
194 })
195 }

Callers 7

addFunction · 0.70
addHttpApiFunction · 0.70
prefixFunction · 0.70
middlewareFunction · 0.70
annotateFunction · 0.70
annotateMergeFunction · 0.70
makeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…