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

Function layerConfig

packages/platform/deno/src/DenoHttpServer.ts:272–287  ·  view source on GitHub ↗
(
  options: Config.Wrap<
    ServeOptions & {
      readonly disablePreemptiveShutdown?: boolean | undefined
      readonly gracefulShutdownTimeout?: Duration.Input | undefined
      readonly websocket?: Deno.UpgradeWebSocketOptions | undefined
    }
  >
)

Source from the content-addressed store, hash-verified

270 * @since 4.0.0
271 */
272export const layerConfig = (
273 options: Config.Wrap<
274 ServeOptions & {
275 readonly disablePreemptiveShutdown?: boolean | undefined
276 readonly gracefulShutdownTimeout?: Duration.Input | undefined
277 readonly websocket?: Deno.UpgradeWebSocketOptions | undefined
278 }
279 >
280): Layer.Layer<
281 Server.HttpServer | HttpPlatform | FileSystem.FileSystem | Etag.Generator | Path.Path,
282 ConfigError
283> =>
284 Layer.mergeAll(
285 Layer.effect(Server.HttpServer)(Effect.flatMap(Config.unwrap(options), make)),
286 layerHttpServices
287 )
288
289class DenoServerRequest extends Inspectable.Class implements ServerRequest.HttpServerRequest {
290 readonly [ServerRequest.TypeId]: typeof ServerRequest.TypeId

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected