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
| Parameter | Type |
|---|---|
contentType | string |
Returns
boolean