Skip to content
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

RE: Add HTTP Trailers #341

Closed
wants to merge 2 commits into from
Closed

Conversation

sam-kleiner
Copy link

@sam-kleiner sam-kleiner commented Aug 17, 2022

There is already a PR open regarding this. I wanted to open this to add options to the discussion. I did the uvicorn implementation.

As stated in the other proposal PR this works a bit differently. This adds a new message type http.response.trailers and a new trailers bool property to http.response.start. IMO this simplifies the implementation.

My original POC did not account for chunked trailers but this would be easy to add with a more_trailers property similar to the more_body property.

Personally I like the more_body being set to false when the body is done and trailers being sent after. It makes more sense to me, but at the end of the day if any trailers get added I will be happy.

@andrewgodwin
Copy link
Member

I do like this in general, but I feel like we need a more_trailers in there because people are inevitably going to want that?

@Kludex
Copy link
Contributor

Kludex commented Mar 4, 2023

This can be closed. It was already merged on #339.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants