-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we add flags to headers/data event? #149
Comments
As in, you need to send a trailer? You're not allowed to interleave headers and data frames within a stream.
How or why would this address what you're after? |
@igrigorik According to the GRPC spec
Because I need know headers & data of request, check all frame will take more time.
Other way is collecting all headers & data to an array, and send them when remote_server_stream close. Then, I cannot forward them real-time. Because I didn't take more time to read code & understand http2, I didn't process it by So which way do you think is better? |
You definitely shouldn't buffer. What you're doing by listening to |
Yes, it's right if the just for gRPC. But I want to forward all h2 request. I think
|
If I cannot get the flag of current frame from |
When I forward a gRPC request, I must send 3 frames(headers -> data -> headers).
I think add flags of frame to event of data/headers is a easy way.
How do you think so?
If you think it is ok, will create a PR for it.
The text was updated successfully, but these errors were encountered: