Appends a value to an existing header inside a Headers object, or adds the header if it does not already exist.
append(name, value)
name
The name of the HTTP header to append.
value
The value of the HTTP header to append.
undefined
let headers = new Headers()
headers.append('content-type', 'application/json')
print(headers.get('content-type'))
application/json