On Sat, 31 Aug 2013 08:59:02 +0200, Sönke Ludwig wrote:

Am 30.08.2013 21:24, schrieb Jack Applegame:

How to read only headers from remote host and immediately drop connection?
Is vibe.http.client.requestHTTP suitable for this or it always reads whole body?

The standard conformant way to do this would be to send a HEAD request
instead of a GET one (doesn't work for POST etc. though). But right now
requestHTTP will indeed always read the whole body if the user code
didn't already do so (so that it can keep the connection open).

A HTTPClientResponse.disconnect method would be easy to add and should
do the job.

Okay, https://github.com/rejectedsoftware/vibe.d/commit/e1d70e57ad70bf20e4038919999628f5f613b2d4 adds this. I didn't test it, but hopefully there shouldn't be much room for bugs.