Skip to content

BunHttpPlatform

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 Added in v4.0.0 Source

Layers

layer

Added in v4.0.0 Source

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

Signature

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