-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
enhancementNew feature or requestNew feature or requestpending / needs designAwaiting design and/or implementation discussion and decisionsAwaiting design and/or implementation discussion and decisions
Description
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.
CompeyDev
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpending / needs designAwaiting design and/or implementation discussion and decisionsAwaiting design and/or implementation discussion and decisions