docs: protected void writeRequestHeaders(HttpState state, HttpConnection conn)
      throws IOException, HttpException {
          LOG.trace("enter HttpMethodBase.writeRequestHeaders(HttpState,"
              + "HttpConnection)");
          addRequestHeaders(state, conn);
  
          String charset = getParams().getHttpElementCharset();
          
          Header[] headers = getRequestHeaders();
          for (int i = 0; i < headers.length; i++) {
              String s = headers[i].toExternalForm();
              if (Wire.HEADER_WIRE.enabled()) {
                  Wire.HEADER_WIRE.output(s);
              }
              conn.print(s, charset);
          }
      }