Skip to content
Discussion options

You must be logged in to vote

You may get 0..N gun_inform followed by gun_response, where IsFin indicates whether the response is complete. After that the body may follow, and optionally gun_trailers.

Typically informational response headers shouldn't be merged as they can be completely ignored.

Trailer headers on the other hand are roughly the same as the response headers, only they arrive after the body. But since they arrive after the body, which may be very large, they are not normally merged. They are handled the same but separately (two sets of header fields). https://www.rfc-editor.org/rfc/rfc9110.html#name-processing-trailer-fields

So I don't think you need to merge headers together except if you always need t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@erlend-axelsson
Comment options

Answer selected by erlend-axelsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants