Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

BunHttpPlatform unstable

Bun implementation of the Effect HTTP platform service.

This module provides one layer for HttpPlatform. It implements file responses with Bun.file, supports sliced file responses for byte ranges, and returns Web File values as raw HTTP server responses. The layer also provides the Bun file-system layer and ETag generator required by HttpPlatform.

1 exports Since v4.0.0 Source

Layers

layer

unstable
Since v4.0.0

Layer that provides the Bun HttpPlatform, including file responses backed by Bun.file.

Signature

declare const layer: Layer<HttpPlatform, never, never>