Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Parsing trailers #495

Closed
Chuongv opened this issue Oct 28, 2019 · 2 comments
Closed

Parsing trailers #495

Chuongv opened this issue Oct 28, 2019 · 2 comments

Comments

@Chuongv
Copy link

Chuongv commented Oct 28, 2019

I noticed that when the http-parser parses trailers, it does not call the on_headers_complete after the trailers have been parsed. It instead goes to on_message_complete

Is that the intended behavior? Was not sure if my implementation is wrong or if this is expected.

@bnoordhuis
Copy link
Member

Yes, that's the expected behavior. on_headers_complete signals the transition from headers to body, on_message_complete from body or trailing headers to end-of-message.

@Chuongv
Copy link
Author

Chuongv commented Oct 28, 2019

Sweet thanks, that aligns with what I am seeing.

@Chuongv Chuongv closed this as completed Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants