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

The standard conformant way to do this would be to send a HEAD request
instead of a GET one.

Yes, I know. But sometimes (in particular, in my case) remote host doesn't support HEAD requests. GET responses with Last-Modified header and large body. Body is being cached on local host.

On Sat, 31 Aug 2013 07:23:52 GMT, Sönke Ludwig wrote:

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

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.

I tested it and everything works. Thanks, I really needed it.