transform-hub icon indicating copy to clipboard operation
transform-hub copied to clipboard

Forwarding request with VerserConnection

Open patuwwy opened this issue 2 years ago • 0 comments

Describe the bug Not a bug but a place to improvement.

VerserConnection.forward(req: IncomingMessage, res: ServerResponse): Promise<void> https://github.com/scramjetorg/transform-hub/blob/devel/packages/verser/src/lib/verser-connection.ts#L80-L136

could utilize VerserConnection.makeRequest https://github.com/scramjetorg/transform-hub/blob/devel/packages/verser/src/lib/verser-connection.ts#L144-L162 instead of implementing low level http chunked transfer on its own

patuwwy avatar Apr 13 '22 16:04 patuwwy