Deletes the header with the specified name.
delete(name)
name
The name of the HTTP header to delete.
If the name does not exist, the method does nothing.
undefined
let headers = new Headers({ "content-type": "application/json" })
print(headers.has('content-type'))
headers.delete('content-type')
print(headers.has('content-type'))
true
false