code: @Override
      public boolean accepts(String mimeType) {
          String contentType = request.headers().get(HeaderNames.ACCEPT);
          if (contentType == null) {
              contentType = MimeTypes.HTML;
          }
          // For performance reason, we first try a full match:
          if (contentType.contains(mimeType)) {
              return true;
          }
          // Else check the media types:
          MediaType input = MediaType.parse(mimeType);
          for (MediaType type : mediaTypes()) {
              if (input.is(type)) {
                  return true;
              }
          }
          return false;
      }
docs: Check if this request accepts a given media type.
  
  @return true if <code>mimeType</code> is in the Accept header, otherwise false