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

Function layerConfig

packages/platform-node/src/internal/httpServer.ts:361–373  ·  view source on GitHub ↗
(
  evaluate: LazyArg<Http.Server>,
  options: Config.Config.Wrap<Net.ListenOptions>
)

Source from the content-addressed store, hash-verified

359
360/** @internal */
361export const layerConfig = (
362 evaluate: LazyArg<Http.Server>,
363 options: Config.Config.Wrap<Net.ListenOptions>
364) =>
365 Layer.mergeAll(
366 Layer.scoped(
367 Server.HttpServer,
368 Effect.flatMap(Config.unwrap(options), (options) => make(evaluate, options))
369 ),
370 internalPlatform.layer,
371 Etag.layerWeak,
372 NodeContext.layer
373 )
374
375const handleResponse = (request: ServerRequest.HttpServerRequest, response: ServerResponse.HttpServerResponse) =>
376 Effect.suspend((): Effect.Effect<void, Error.ResponseError> => {

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected