// Path: src/main/java/org/iotlabs/dashboard/literals/ContentType.java
// public class ContentType {
//     public static final String JSON = "application/json";
//     public static final String HTML = "text/html";
// }
// 
// Path: src/main/java/org/iotlabs/dashboard/literals/Header.java
// public class Header {
//     public static final String ACCEPT = "Accept";
// }


import org.iotlabs.storage.models.general.User;
import org.iotlabs.dashboard.literals.ContentType;
import org.iotlabs.dashboard.literals.Header;
import spark.Request;
package org.iotlabs.dashboard.utils;


public class Checker {

    public static boolean isRequestingHtml(Request request) {
        String accept = request.headers(Header.ACCEPT);
        return accept != null
// Path: src/main/java/org/iotlabs/dashboard/literals/ContentType.java
// public class ContentType {
//     public static final String JSON = "application/json";
//     public static final String HTML = "text/html";
// }
// 
// Path: src/main/java/org/iotlabs/dashboard/literals/Header.java
// public class Header {
//     public static final String ACCEPT = "Accept";
// }


// Path: src/main/java/org/iotlabs/dashboard/utils/Checker.java
import org.iotlabs.storage.models.general.User;
import org.iotlabs.dashboard.literals.ContentType;
import org.iotlabs.dashboard.literals.Header;
import spark.Request;

package org.iotlabs.dashboard.utils;


public class Checker {

    public static boolean isRequestingHtml(Request request) {
        String accept = request.headers(Header.ACCEPT);
        return accept != null
                && accept.contains(ContentType.HTML);