( response: ServerResponse.HttpServerResponse, body: HttpBody.HttpBody )
| 26 | // replaces the response body while keeping every other field, dropping the |
| 27 | // now-stale Content-Length header |
| 28 | const compressedBody = ( |
| 29 | response: ServerResponse.HttpServerResponse, |
| 30 | body: HttpBody.HttpBody |
| 31 | ): ServerResponse.HttpServerResponse => |
| 32 | ServerResponse.removeHeader(ServerResponse.setBody(response, body), "content-length") |
| 33 | |
| 34 | const compression = NodeHttpCompression.make({ |
| 35 | algorithms: NodeHttpCompression.algorithms, |