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

BunHttpServerRequest

Accessor for the Bun request behind an Effect HTTP server request.

This module exports toBunServerRequest, which returns the underlying Bun.BunRequest stored inside a Bun-backed HttpServerRequest. It is meant for code that needs to interoperate with Bun-specific request APIs.

1 exports Added in v4.0.0 Source

Accessors

Returns the underlying Bun.BunRequest from an Effect HttpServerRequest.

Signature

declare function toBunServerRequest<T extends string = string>(self: HttpServerRequest): BunRequest<T>