code: public boolean matchContentType(String contentTypeRegex) {
          if (contentTypeRegex == null) {
              return contentType() == null;
          }
          return Pattern.matches(contentTypeRegex, contentType());
      }
docs: 判断当前Page的Http响应头的Content-Type是否符合正则
  
  @param contentTypeRegex
  @return