vpnkit icon indicating copy to clipboard operation
vpnkit copied to clipboard

Avoid using the cohttp transfer_io module

Open djs55 opened this issue 7 years ago • 0 comments

Unfortunately the cohttp module uses strings throughout which means we must

  • receive a Cstruct.t
  • copy into a string
  • copy into another Cstruct.t

while proxying HTTP bodies. This patch inlines the proxying code to remove these 2 unnecessary copies.

This patch also adds support for trailing headers and chunk extensions as a side-effect.

Signed-off-by: David Scott [email protected]

djs55 avatar May 19 '18 15:05 djs55