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

Function addHttpApi

repos/effect/packages/effect/src/unstable/httpapi/HttpApi.ts:134–149  ·  view source on GitHub ↗
(
    this: AnyWithProps,
    api: AnyWithProps
  )

Source from the content-addressed store, hash-verified

132 * @since 4.0.0
133 */
134export interface Top extends HttpApi<string, HttpApiGroup.Top> {}
135
136const Proto = {
137 [TypeId]: TypeId,
138 pipe() {
139 return pipeArguments(this, arguments)
140 },
141 add(
142 this: Top,
143 ...toAdd: NonEmptyReadonlyArray<HttpApiGroup.Top>
144 ) {
145 const groups = { ...this.groups }
146 for (const group of toAdd) {
147 InternalRecord.assignProperty(groups, group.identifier, group)
148 }
149 return makeProto({
150 ...optionsFromApi(this),
151 groups
152 })

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.80
makeProtoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…