BunHttpPlatform.ts
BunHttpPlatform.ts overview
Section titled “BunHttpPlatform.ts overview”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
Exports Grouped by Category
Section titled “Exports Grouped by Category”layers
Section titled “layers”Layer that provides the Bun HttpPlatform, including file responses backed by Bun.file.
Signature
declare const layer: Layer.Layer<Platform.HttpPlatform, never, never>Since v4.0.0