code: public long getHeaderFieldLong(final String name, final long pdefault) {
      final String value = this.getHeaderField(name);
      try {
        return Long.parseLong(value);
      } catch (final Exception e) { // NOPMD
      }
      return pdefault;
    }
docs: Returns the value of the named field parsed as a number.
  <p>
  This form of {@code getHeaderField} exists because some connection types (e.g., {@code http-ng}
  ) have pre-parsed headers. Classes for that connection type can override this method and
  short-circuit the parsing.
  </p>
  
  @param name the name of the header field.
  @param pdefault the default value.
  @return the value of the named field, parsed as a long. The {@code Default} value is returned
  if the field is missing or malformed.
  @since 7.0