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

Function handle

packages/platform/src/HttpApiBuilder.ts:399–415  ·  view source on GitHub ↗
(
    this: Handlers<any, any, any, HttpApiEndpoint.HttpApiEndpoint.Any>,
    name: string,
    handler: HttpApiEndpoint.HttpApiEndpoint.Handler<any, any, any>,
    options?: { readonly uninterruptible?: boolean | undefined } | undefined
  )

Source from the content-addressed store, hash-verified

397 return pipeArguments(this, arguments)
398 },
399 handle(
400 this: Handlers<any, any, any, HttpApiEndpoint.HttpApiEndpoint.Any>,
401 name: string,
402 handler: HttpApiEndpoint.HttpApiEndpoint.Handler<any, any, any>,
403 options?: { readonly uninterruptible?: boolean | undefined } | undefined
404 ) {
405 const endpoint = this.group.endpoints[name]
406 return makeHandlers({
407 group: this.group,
408 handlers: Chunk.append(this.handlers, {
409 endpoint,
410 handler,
411 withFullRequest: false,
412 uninterruptible: options?.uninterruptible ?? false
413 }) as any
414 })
415 },
416 handleRaw(
417 this: Handlers<any, any, any, HttpApiEndpoint.HttpApiEndpoint.Any>,
418 name: string,

Callers

nothing calls this directly

Calls 1

makeHandlersFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…