Skip to content

HttpServerResponse needs an escape hatch #5509

@jclem

Description

@jclem

What is the problem this feature would solve?

An escape hatch that allows an unmodified value to be returned from a handler would enable the use of platform-specific types, such as Bun’s HTMLBundle.

What is the feature you are proposing to solve the problem?

Add an escape hatch to HttpServerResponse—perhaps HttpServerResponse.literal(value)—that returns the given value unmodified from the handler.

What alternatives have you considered?

The only current solution is to not use this API in Effect, or to fork Effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions