HTTPResponse.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:w4py 作者: Cito 项目源码 文件源码
def delCookie(self, name, path='/', secure=False):
        """Delete a cookie at the browser.

        To do so, one has to create and send to the browser a cookie with
        parameters that will cause the browser to delete it.
        """
        if name in self._cookies:
            self._cookies[name].delete()
        else:
            cookie = Cookie(name, None)
            if path:
                cookie.setPath(path)
            if secure:
                cookie.setSecure(secure)
            cookie.delete()
            self.addCookie(cookie)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号