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

Function layer

packages/platform/node/src/NodeHttpServer.ts:897–907  ·  view source on GitHub ↗
(
  evaluate: LazyArg<Http.Server | Http2.Http2Server | Http2.Http2SecureServer>,
  options: Options
)

Source from the content-addressed store, hash-verified

895 * @since 4.0.0
896 */
897export const layer = (
898 evaluate: LazyArg<Http.Server | Http2.Http2Server | Http2.Http2SecureServer>,
899 options: Options
900): Layer.Layer<
901 HttpServer.HttpServer | NodeServices.NodeServices | HttpPlatform.HttpPlatform | Etag.Generator,
902 ServeError
903> =>
904 Layer.mergeAll(
905 layerServer(evaluate, options),
906 layerHttpServices
907 )
908
909/**
910 * 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