@Override public HttpClientRequestImpl write(Buffer chunk) { synchronized (getLock()) { checkComplete(); checkResponseHandler(); ByteBuf buf = chunk.getByteBuf(); write(buf, false); return this; } }
@Override public void end(Buffer chunk) { synchronized (getLock()) { checkComplete(); checkResponseHandler(); if (!chunked && !contentLengthSet()) { headers().set(CONTENT_LENGTH, String.valueOf(chunk.length())); } write(chunk.getByteBuf(), true); } }
@Override public NetSocket write(Buffer data) { ByteBuf buf = data.getByteBuf(); write(buf); return this; }