'Check for the existence of a given header.
@type name: L{bytes} or L{unicode}
@param name: The name of the HTTP header to check for.
@rtype: L{bool}
@return: C{True} if the header exists, otherwise C{False}.'

def hasHeader(self, name):

    return (self._encodeName(name) in self._rawHeaders)
