jooby/src/main/java/org/jooby/Request.java
/**
   * @return True if the <code>X-Requested-With</code> header is set to <code>XMLHttpRequest</code>.
   */
@return True if the X-Requested-With header is set to XMLHttpRequest.
@return True if the X - Requested - With header is set to XMLHttpRequest .
default boolean xhr() {
    return header("X-Requested-With")
        .toOptional(String.class)
        .map("XMLHttpRequest"::equalsIgnoreCase)
        .orElse(Boolean.FALSE);
  }
default boolean xhr ( ) { return header ( "X-Requested-With" ) . toOptional ( String . class ) . map ( "XMLHttpRequest" :: equalsIgnoreCase ) . orElse ( Boolean . FALSE ) ; }
@return True if the <code>X-Requested-With</code> header is set to <code>XMLHttpRequest</code>.
@return True if the <code > X - Requested - With< / code > header is set to <code > XMLHttpRequest< / code > .