Ë
    U¼Sfz  ã                   ó¼   — d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	  ej                  e«      Z G d„ de	j                  «      Z G d„ de	j                  «      Zy)	z9Transport adapter for http.client, for internal use only.é    N)Ú
exceptions)Ú	transportc                   óF   — e Zd ZdZd„ Zed„ «       Zed„ «       Zed„ «       Zy)ÚResponsez‚http.client transport response adapter.

    Args:
        response (http.client.HTTPResponse): The raw http client response.
    c                 óÊ   — |j                   | _        |j                  «       D ��ci c]  \  }}|j                  «       |“Œ c}}| _        |j                  «       | _        y c c}}w ©N)ÚstatusÚ_statusÚ
getheadersÚlowerÚ_headersÚreadÚ_data)ÚselfÚresponseÚkeyÚvalues       úaC:\Users\user\Documents\project_loop\venv\Lib\site-packages\google/auth/transport/_http_client.pyÚ__init__zResponse.__init__#   sJ   € Ø—‘ˆŒØ>F×>QÑ>QÓ>S×T±
°°U˜Ÿ™› eÑ+ÓTˆŒØ—]‘]“_ˆ�
ùó Us   ¥Ac                 ó   — | j                   S r   )r
   ©r   s    r   r	   zResponse.status(   s   € à�|‰|Ðó    c                 ó   — | j                   S r   )r   r   s    r   ÚheaderszResponse.headers,   s   € à�}‰}Ðr   c                 ó   — | j                   S r   )r   r   s    r   ÚdatazResponse.data0   s   € à�z‰zÐr   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   r   r   © r   r   r   r      sH   „ ñò%ð
 ñó ðð ñó ðð ñó ñr   r   c                   ó   — e Zd ZdZ	 dd„Zy)ÚRequestz&http.client transport request adapter.Nc                 ó  — |€t         j                  }|€i }t        j                  j	                  |«      }t        j                  j                  dd|j                  |j                  |j                  f«      }|j                  dk7  r.t        j                  dj                  |j                  «      «      ‚t        j                  |j                  |¬«      }		 t         j#                  d||«        |	j$                  ||f||dœ|¤Ž |	j'                  «       }
t)        |
«      |	j+                  «        S # t        j,                  t         j.                  f$ r}t        j                  |«      }||‚d}~ww xY w# |	j+                  «        w xY w)a;  Make an HTTP request using http.client.

        Args:
            url (str): The URI to be requested.
            method (str): The HTTP method to use for the request. Defaults
                to 'GET'.
            body (bytes): The payload / body in HTTP request.
            headers (Mapping): Request headers.
            timeout (Optional(int)): The number of seconds to wait for a
                response from the server. If not specified or if None, the
                socket global default timeout will be used.
            kwargs: Additional arguments passed throught to the underlying
                :meth:`~http.client.HTTPConnection.request` method.

        Returns:
            Response: The HTTP response.

        Raises:
            google.auth.exceptions.TransportError: If any exception occurred.
        NÚ ÚhttpzDhttp.client transport only supports the http scheme, {}was specified)ÚtimeoutzMaking request: %s %s)Úbodyr   )ÚsocketÚ_GLOBAL_DEFAULT_TIMEOUTÚurllibÚparseÚurlsplitÚ
urlunsplitÚpathÚqueryÚfragmentÚschemer   ÚTransportErrorÚformatÚhttp_clientÚHTTPConnectionÚnetlocÚ_LOGGERÚdebugÚrequestÚgetresponser   ÚcloseÚHTTPExceptionÚerror)r   ÚurlÚmethodr)   r   r(   ÚkwargsÚpartsr0   Ú
connectionr   Ú
caught_excÚnew_excs                r   Ú__call__zRequest.__call__8   sP  € ð0 ˆ?Ü×4Ñ4ˆGð ˆ?ØˆGô —‘×%Ñ% cÓ*ˆÜ�|‰|×&Ñ&Ø��U—Z‘Z §¡¨e¯n©nÐ=ó
ˆð �<‰<˜6Ò!Ü×+Ñ+ð ß &¡ u§|¡|Ó 4óð ô
 !×/Ñ/°·±ÀgÔNˆ
ð	Ü�M‰MÐ1°6¸3Ô?àˆJ×Ñ˜v tÐR°$ÀÑRÈ6ÒRØ!×-Ñ-Ó/ˆHÜ˜HÓ%ð ×ÑÕøô ×)Ñ)¬6¯<©<Ð8ò 	*Ü ×/Ñ/°
Ó;ˆGØ˜zÐ)ûð	*ûð
 ×ÑÕús%   ÃAD0 Ä0#E0ÅE+Å+E0Å0E3 Å3F)ÚGETNNN)r   r   r   r    rG   r"   r   r   r$   r$   5   s   „ Ù0ð CGô9r   r$   )r    Úhttp.clientÚclientr6   Úloggingr*   r,   Úgoogle.authr   r   Ú	getLoggerr   r9   r   r$   r"   r   r   ú<module>rN      sS   ðñ @å !Û Û Û å "Ý !à
ˆ'×
Ñ
˜HÓ
%€ôˆy×!Ñ!ô ô2<ˆi×Ñõ <r   