18 lines
408 B
JavaScript
18 lines
408 B
JavaScript
export const knownContentTypes = [
|
|
"application/json",
|
|
"application/vnd.api+json",
|
|
"application/hal+json",
|
|
"application/xml",
|
|
"application/x-www-form-urlencoded",
|
|
"text/html",
|
|
"text/plain",
|
|
]
|
|
|
|
export function isJSONContentType(contentType) {
|
|
return (
|
|
contentType === "application/json" ||
|
|
contentType === "application/vnd.api+json" ||
|
|
contentType === "application/hal+json"
|
|
)
|
|
}
|