3 P\y @ s> d Z ddlZddlmZmZ ddlmZ G dd dejZ dS )z*The module containing HTTPProxyDigestAuth. N)cookiesutils )_digest_auth_compatc sf e Zd ZdZejdejdZ fddZe dd Z e jdd Z fd d Zdd Z d d Z ZS )HTTPProxyDigestAuthaO HTTP digest authentication between proxy :param stale_rejects: The number of rejects indicate that: the client may wish to simply retry the request with a new encrypted response, without reprompting the user for a new username and password. i.e., retry build_digest_header :type stale_rejects: int zdigest )flagsc s$ t t| j|| d| _| j d S )Nr )superr __init__ stale_rejectsinit_per_thread_state)selfargskwargs) __class__ '/usr/lib/python3.6/http_proxy_digest.pyr s zHTTPProxyDigestAuth.__init__c C s t | dd }|d kr| jS |jS )N _thread_local)getattr_stale_rejectsr )r thread_localr r r r s z!HTTPProxyDigestAuth.stale_rejectsc C s&