map.apps Bundle APIs 4.20.0
    Preparing search index...

    Enumeration ContentType

    Exports some default content types as optional utilities.

     import { apprtFetch, ContentType } from "apprt-fetch";

    apprtFetch(url, {
    method: "POST",
    headers: {
    "Content-Type": ContentType.JSON_UTF8,
    "Accept": ContentType.JSON
    }
    });
    Index

    Enumeration Members

    FORM_URLENCODED: "application/x-www-form-urlencoded"

    Content-Type: application/x-www-form-urlencoded

    FORM_URLENCODED_UTF8: "application/x-www-form-urlencoded;charset=UTF-8"

    Content-Type: application/x-www-form-urlencoded;charset=UTF-8

    JSON: "application/json"

    Content-Type: application/json

    JSON_UTF8: "application/json;charset=UTF-8"

    Content-Type: application/json;charset=UTF-8

    TEXT_PLAIN: "text/plain"

    Content-Type: text/plain

    TEXT_PLAIN_UTF8: "text/plain;charset=UTF-8"

    Content-Type: text/plain;charset=UTF-8

    TEXT_XML: "text/xml"

    Content-Type: text/xml

    TEXT_XML_UTF8: "text/xml;charset=UTF-8"

    Content-Type: text/xml;charset=UTF-8

    XML: "application/xml"

    Content-Type: application/xml

    XML_UTF8: "application/xml;charset=UTF-8"

    Content-Type: application/xml;charset=UTF-8