effect-io-ai

Package: @effect/platform-bun
Module: BunHttpServer

BunHttpServer.layer

Layer that provides a Bun HttpServer together with the Bun HTTP platform, ETag generator, and Bun services.

Signature

declare const layer: <R extends string>(options: ServeOptions<R> & { readonly disablePreemptiveShutdown?: boolean | undefined; readonly gracefulShutdownTimeout?: Duration.Input | undefined; }) => Layer.Layer<Server.HttpServer | HttpPlatform | Etag.Generator | BunServices.BunServices>

Source

Since v4.0.0