Headers.get()
The get() method of the Headers interface
returns a byte string of all the values of a header within a Headers object
with a given name. If the requested header doesn't exist in the Headers
object, it returns null.
Syntax
get(name)
Parameters
name- : The name of the HTTP header whose values you want to retrieve from the
Headersobject. If the given name is not the name of an HTTP header, this method throws aTypeError. The name is case-insensitive.
- : The name of the HTTP header whose values you want to retrieve from the
Return value
A String sequence representing the values of the retrieved header or
null if this header is not set.