effect-io-ai

Package: @effect/platform-bun
Module: BunHttpServer

BunHttpServer.ServeOptions

Bun serve options accepted by the HTTP server, extended with typed route definitions.

Signature

type ServeOptions<R> = & (
    | Bun.Serve.UnixServeOptions<WebSocketContext>
    | Bun.Serve.HostnamePortServeOptions<WebSocketContext>
  )
  & { readonly routes?: Bun.Serve.Routes<WebSocketContext, R> }

Source

Since v4.0.0