docs: public void write(byte[] data, int offset, int length)
          throws IOException, IllegalStateException {
          LOG.trace("enter HttpConnection.write(byte[], int, int)");
  
          if (offset < 0) {
              throw new IllegalArgumentException("Array offset may not be negative");
          }
          if (length < 0) {
              throw new IllegalArgumentException("Array length may not be negative");
          }
          if (offset + length > data.length) {
              throw new IllegalArgumentException("Given offset and length exceed the array length");
          }
          assertOpen();
          this.outputStream.write(data, offset, length);
      }