Refactored chunked encoding support after code review
- Avoid copying buffers when building HTTP chunks
- Simplify configuration by using an Option
- Treat chunked and unchunked messages in a more consistent way