has method
Checks whether or not a header exists within the current Headers object.
Syntax
var retval = Headers.has(name);
Parameters
name [in]
Type: ByteStringName of the HTTP header to check for.
Return value
Type: boolean
A boolean that is true
if the specified header exists within the Headers object. false
otherwise.