def parse_cookies(self, req, name, field):
        """Pull a value from the header data."""
        cookie = req.cookies.get(name)

        if cookie is not None:
            return [cookie.value] if core.is_multiple(field) else cookie.value
        else:
            return [] if core.is_multiple(field) else None
def parse_cookies ( self , req , name , field ) : cookie = req . cookies . get ( name ) if cookie is not None : return [ cookie . value ] if core . is_multiple ( field ) else cookie . value else : return [ ] if core . is_multiple ( field ) else None
Pull a value from the header data.