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

Function handleRaw

packages/platform/src/HttpApiBuilder.ts:416–432  ·  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

414 })
415 },
416 handleRaw(
417 this: Handlers<any, any, any, HttpApiEndpoint.HttpApiEndpoint.Any>,
418 name: string,
419 handler: HttpApiEndpoint.HttpApiEndpoint.Handler<any, any, any>,
420 options?: { readonly uninterruptible?: boolean | undefined } | undefined
421 ) {
422 const endpoint = this.group.endpoints[name]
423 return makeHandlers({
424 group: this.group,
425 handlers: Chunk.append(this.handlers, {
426 endpoint,
427 handler,
428 withFullRequest: true,
429 uninterruptible: options?.uninterruptible ?? false
430 }) as any
431 })
432 }
433}
434
435const makeHandlers = <E, Provides, R, Endpoints extends HttpApiEndpoint.HttpApiEndpoint.Any>(

Callers

nothing calls this directly

Calls 1

makeHandlersFunction · 0.70

Tested by

no test coverage detected