Skip to main content

ContentType

Variables​

json​

const json: object;

Type Declaration​

name​
name: string = 'Content-Type';
value​
value: string = 'application/json;charset=UTF-8';

text​

const text: object;

Type Declaration​

name​
name: string = 'Content-Type';
value​
value: string = 'text/plain';

Functions​

isJsonContentType()​

function isJsonContentType(contentType): boolean;

Parameters​

ParameterType
contentTypestring

Returns​

boolean

Was this page helpful?