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.