Headers.constructor

The Headers constructor.

Syntax

new Headers(init?)

Parameters

Return value

A Headers object.

Examples

let headers = new Headers({ "content-type": "application/json" })
headers.get('Content-Type')
"application/json"