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

Server API recommendation: auto set content length from body provided #8

Open
jentfoo opened this issue May 23, 2017 · 0 comments
Open

Comments

@jentfoo
Copy link
Member

jentfoo commented May 23, 2017

It's awkward and confusing to have to know that you implicitly need to add the content length header. This is easier to do in the client right now since the body content is provided before the request is made.

However for the HTTPServer's ResponseWriter we specify the body separate from the headers. This may be a harder problem to solve (but we could potentially add some API sugar when the entire content is known before hand).

@jentfoo jentfoo changed the title API recommendation: auto set content length from body provided Server API recommendation: auto set content length from body provided Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant