Headers()
The Headers() constructor creates a new Headers object.
Syntax
new Headers()
new Headers(init)
Parameters
initoptional- : An object containing any HTTP headers that you want to pre-populate your
Headersobject with. This can be a simple object literal withStringvalues, an array of name-value pairs, where each pair is a 2-element string array; or an existingHeadersobject. In the last case, the newHeadersobject copies its data from the existingHeadersobject.
- : An object containing any HTTP headers that you want to pre-populate your