joepie91 / node-bhttp

A sane HTTP client library for Node.js with Streams2 support.
62 stars 12 forks source link

pseudo-head request method? #18

Open stevenvachon opened 8 years ago

stevenvachon commented 8 years ago

Because some servers can have issues with using "head" and using "get" can download more than we may want, I propose a middle ground where "get" is used, but the stream is closed once the body data starts to come in. At which point, any any of the body that may have downloaded can be excluded from the returned response.

Maybe call it "neck" method ;)