Skip to content

BunHttpPlatform.ts

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.

Since v4.0.0



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

Signature

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

Source

Since v4.0.0