code: @Deprecated
      public static Date getDateHeader(HttpMessage message, CharSequence name) throws ParseException {
          String value = message.headers().get(name);
          if (value == null) {
              throw new ParseException("header not found: " + name, 0);
          }
          Date date = DateFormatter.parseHttpDate(value);
          if (date == null) {
              throw new ParseException("header can't be parsed into a Date: " + value, 0);
          }
          return date;
      }
docs: @deprecated Use {@link #getTimeMillis(CharSequence)} instead.
  
  Returns the date header value with the specified header name.  If
  there are more than one header value for the specified header name, the
  first value is returned.
  
  @return the header value
  @throws ParseException
  if there is no such header or the header value is not a formatted date