Create server util to allow pulling requests #2939
Labels
A-server
Area: server.
C-feature
Category: feature. This is adding a new feature.
E-medium
Effort: medium. Some knowledge of how hyper internal works would be useful.
K-hyper-util
Crate: hyper-util
The current server API is callback-based, where
Service
is called whenever a request is received. Some applications need to invert it such that they take a request only when they are ready. This proposes creating a utility in hyper-util that would allow usage similar to this:The text was updated successfully, but these errors were encountered: