o
    Dfx                     @   s2   d dl mZ g dZdd ZdedefddZd	S )
    )Request)headerscookiesverifycerthttp1http2proxiestimeoutfollow_redirectslimitsmax_redirectsevent_hooksbase_url	transportapp	trust_envc                 C   s(   i }t D ]}|| v r| |||< q|S )N)HTTPX_CLIENT_KWARGSpop)kwargsclient_kwargsk r   `/home/ubuntu/webapp/venv/lib/python3.10/site-packages/authlib/integrations/httpx_client/utils.pyextract_client_kwargs
   s   r   initial_requestreturnc                 C   s(   t |j| ||d}t|dr|j|_|S )zPMake sure that all the data from initial request is passed to the updated object)methodurlr   content
extensions)r   r   hasattrr    )r   r   bodyr   updated_requestr   r   r   build_request   s   
r$   N)httpxr   r   r   r$   r   r   r   r   <module>   s    