Skip to content

Conversation

@ianmcook
Copy link
Member

@ianmcook ianmcook commented Mar 9, 2024

I was looking at the raw output from the different server examples by running

curl -v --raw -o output.raw http://localhost:8000

and examining output.raw with a hex viewer, and I noticed that the Go server example (using http) and the Java server example (using Jetty) both use chunked transfer encoding by default when the Content-Length header is not set, whereas the Python server example (using http.server) and the Rust server example in #8 (which doesn't use any high-level HTTP framework) do not.

I added comments in both examples showing how to disable chunked transfer encoding.

@ianmcook
Copy link
Member Author

ianmcook commented Mar 9, 2024

Related to this: in #12 I implemented chunked transfer encoding in the Python server example

@ianmcook ianmcook merged commit f4c54a5 into apache:main Mar 11, 2024
@ianmcook ianmcook deleted the nochunks branch March 11, 2024 19:26
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.

1 participant