MCPcopy
hub / github.com/Effect-TS/effect / layerConfig

Function layerConfig

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

Source from the content-addressed store, hash-verified

350
351/** @internal */
352export const layerConfig = (
353 evaluate: LazyArg<Http.Server>,
354 options: Config.Config.Wrap<Net.ListenOptions>
355) =>
356 Layer.mergeAll(
357 Layer.scoped(
358 Server.HttpServer,
359 Effect.flatMap(Config.unwrap(options), (options) => make(evaluate, options))
360 ),
361 internalPlatform.layer,
362 Etag.layerWeak,
363 NodeContext.layer
364 )
365
366const handleResponse = (request: ServerRequest.HttpServerRequest, response: ServerResponse.HttpServerResponse) =>
367 Effect.suspend((): Effect.Effect<void, Error.ResponseError> => {

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected