HTTPClientResponse.readRawBody

Provides unsafe means to read raw data from the connection.

No transfer decoding and no content decoding is done on the data.

Not that the provided delegate must read the whole stream, as the state of the response is unknown after raw bytes have been taken. Failure to read the right amount of data will lead to protocol corruption in later requests.

  1. void readRawBody(void delegate(scope InterfaceProxy!InputStream stream) @(safe) del)
    class HTTPClientResponse
    @safe
    void
    readRawBody
    (
    scope void delegate
    (
    scope InterfaceProxy!InputStream stream
    )
    @safe
    del
    )
  2. void readRawBody(void delegate(scope InputStream stream) @(safe) del)

Meta