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

Function layer

packages/platform/node/src/NodeHttpServer.ts:446–456  ·  view source on GitHub ↗
(
  evaluate: LazyArg<Http.Server>,
  options: Options
)

Source from the content-addressed store, hash-verified

444 * @since 4.0.0
445 */
446export const layer = (
447 evaluate: LazyArg<Http.Server>,
448 options: Options
449): Layer.Layer<
450 HttpServer.HttpServer | NodeServices.NodeServices | HttpPlatform.HttpPlatform | Etag.Generator,
451 ServeError
452> =>
453 Layer.mergeAll(
454 layerServer(evaluate, options),
455 layerHttpServices
456 )
457
458/**
459 * Provides a Node `HttpServer` together with the Node HTTP platform, ETag,

Callers 1

NodeHttpServer.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected