APISonar


com.intuit.karate.ScriptValue.Type.XML

> com > intuit > karate > ScriptValue > Type > XML
com APIs intuit APIs karate APIs ScriptValue APIs Type APIs XML APIs

Example 1
public static String getContentType(ScriptValue sv) {
        if (sv.isStream()) {
            return APPLICATION_OCTET_STREAM;
        } else if (sv.getType() == Type.XML) {
            return APPLICATION_XML;
        } else if (sv.isJsonLike()) {
            return APPLICATION_JSON;
        } else {
            return TEXT_PLAIN;
        }
    }