anmonteiro / httpun

A high performance, memory efficient, and scalable web server written in OCaml
Other
50 stars 11 forks source link

Error handler body uses Writer.t directly #112

Closed anmonteiro closed 2 years ago

anmonteiro commented 2 years ago

relevant code snippet: https://github.com/anmonteiro/httpaf/blob/bc80664d505105bf03f08454d730dd7d35ce681a/lib/server_connection.ml#L200-L204

This doesn't work for chunked-encoded responses, which need to go through the Body.t Faraday encoder and transfer_to_writer.