Skip to content

ServeHttpHandler support multiple http responses #332

@TrippTrapp84

Description

@TrippTrapp84

Right now the ServeHttpHandler definition only has one parameter ServeRequest, and the response is specified by the return value of your ServeHttpHandler (or lack thereof). This is limiting in cases where multiple responses may be necessary, such as HTTP 103 Early Hints.

One solution is adding a second parameter ServeReply to ServeHttpHandler which mimics Fastify's Reply construct. This solves the problem in a robust and expandable way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpending / needs designAwaiting design and/or implementation discussion and decisions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions