Closed Chuongv closed 4 years ago
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.
Sweet thanks, that aligns with what I am seeing.
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.