fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Allow passing Request and Response objects

Open palanik opened this issue 8 years ago • 1 comments

Use headers from http.IncomingMessage / http.OutgoingMessage, while providing backward compatibility.

Also including test cases.

palanik avatar Aug 31 '16 03:08 palanik

👎 adding a dependency on the http module for such a trivial thing someone can do in their code is not great; that is a large dependency that can get added in a browserify bundle, for example. If we are going to accept those objects, at least we should only use the public APIs, not private APIs.

dougwilson avatar Aug 31 '16 03:08 dougwilson