@Override public void writeTo(OutputStream out, int bufferSize) throws IOException { markConsumed(); super.writeTo(out, bufferSize); }
@Override public byte[] asRawBytes() throws IOException { markConsumed(); return super.asRawBytes(); }
@Override public Optional<ChunkedBodyContents> asChunkedBodyContents() throws IOException { markConsumed(); return super.asChunkedBodyContents(); }
@Override public void writeTo(OutputStream out, int bufferSize) throws IOException { markConsumed(); super.writeTo(out, bufferSize); }
@Override public byte[] asRawBytes() throws IOException { markConsumed(); return super.asRawBytes(); }
@Override public Optional<ChunkedBodyContents> asChunkedBodyContents() throws IOException { markConsumed(); return super.asChunkedBodyContents(); }
@Override public EagerBodyReader eager() throws IOException { markConsumed(); try { return new EagerBodyReader(getFramedBody(), inputStream); } catch (IOException e) { // error while trying to read message body, we cannot keep the connection alive try { inputStream.close(); } catch (IOException e2) { // ignore } throw e; } }
@Override public EagerBodyReader eager() throws IOException { markConsumed(); try { return new EagerBodyReader(getFramedBody(), inputStream); } catch (IOException e) { // error while trying to read message body, we cannot keep the connection alive try { inputStream.close(); } catch (IOException e2) { // ignore } throw e; } }