notification.py 文件源码

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

项目:cc-server 作者: curious-containers 项目源码 文件源码
def _auth(http_auth):
    if not http_auth:
        return None

    if http_auth['auth_type'] == 'basic':
        return HTTPBasicAuth(
            http_auth['username'],
            http_auth['password']
        )

    if http_auth['auth_type'] == 'digest':
        return HTTPDigestAuth(
            http_auth['username'],
            http_auth['password']
        )

    raise Exception('Authorization information is not valid.')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号