def METHOD_NAME(self, key: str, default=None):
    header = self.get(ReservedHeaderKey.HEADERS, None)
    if not header:
        return default
    else:
        if not isinstance(header, dict):
            raise ValueError("header object must be a dict, but got {}".format(type(header)))
        return header.get(key, default)