MCPcopy Index your code
hub / github.com/Effect-TS/effect / make

Function make

packages/platform/src/internal/httpMultiplex.ts:72–79  ·  view source on GitHub ↗
(
  apps: Iterable<
    readonly [
      predicate: (request: ServerRequest.HttpServerRequest) => Effect.Effect<boolean, E, R>,
      app: App.Default<E, R>
    ]
  >
)

Source from the content-addressed store, hash-verified

70
71/** @internal */
72export const make = <E, R>(
73 apps: Iterable<
74 readonly [
75 predicate: (request: ServerRequest.HttpServerRequest) => Effect.Effect<boolean, E, R>,
76 app: App.Default<E, R>
77 ]
78 >
79): Multiplex.HttpMultiplex<E, R> => new MultiplexImpl(Arr.fromIterable(apps))
80
81/** @internal */
82export const add = dual<

Callers 1

httpMultiplex.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected