You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem your feature solves, or the need it fulfills?
Current implementation of ServeHttp has the Limitation that body cannot be streamed. This imposes a limitation for applications that need to stream a huge amount of data, or connect to other APIs that streams data.
I'm proposing make the HttpServer trait more flexible by introducing an associate type to representing the Body type which would allow HttpServer developer come up with the type that better suit its application:
What is the problem your feature solves, or the need it fulfills?
Current implementation of ServeHttp has the Limitation that body cannot be streamed. This imposes a limitation for applications that need to stream a huge amount of data, or connect to other APIs that streams data.
Check: https://github.com/cloudflare/pingora/blob/main/pingora-core/src/apps/http_app.rs#L37
Describe the solution you'd like
I'm proposing make the HttpServer trait more flexible by introducing an associate type to representing the Body type which would allow HttpServer developer come up with the type that better suit its application:
I actually have this implemented on our project, and have some spare time to work on a PR.
The text was updated successfully, but these errors were encountered: