I don't think this will work - since setting a body in the `apply` method below doesn't override the `Content-Length` header.  The effect will be that, for example, HTML bodies will be sent with a header of `Content-Length: 0`.