Ë
    v»•jÖ  ã                   óÈ   — 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	 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)Ú_helpers)Ú
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       úU/var/www/html/venv/lib/python3.12/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.data1   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                 óP  — |€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"                  t$        ||||«        |	j&                  ||f||dœ|¤Ž |	j)                  «       }
t!        j*                  t$        |
«       t-        |
«      |	j/                  «        S # t        j0                  t         j2                  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Ú ÚhttpzEhttp.client transport only supports the http scheme, {} was specified)Útimeout)Úbodyr   )ÚsocketÚ_GLOBAL_DEFAULT_TIMEOUTÚurllibÚparseÚurlsplitÚ
urlunsplitÚpathÚqueryÚfragmentÚschemer   ÚTransportErrorÚformatÚhttp_clientÚHTTPConnectionÚnetlocr   Úrequest_logÚ_LOGGERÚrequestÚgetresponseÚresponse_logr   ÚcloseÚHTTPExceptionÚerror)r   ÚurlÚmethodr*   r   r)   ÚkwargsÚpartsr1   Ú
connectionr   Ú
caught_excÚnew_excs                r   Ú__call__zRequest.__call__9   se  € ð0 ˆ?Ü×4Ñ4ˆGð ˆ?ØˆGô —‘×%Ñ% cÓ*ˆÜ�|‰|×&Ñ&Ø��U—Z‘Z §¡¨e¯n©nÐ=ó
ˆð �<‰<˜6Ò!Ü×+Ñ+ð!ß!'¡¨¯©Ó!5óð ô
 !×/Ñ/°·±ÀgÔNˆ
ð	Ü× Ñ ¤¨&°#°t¸WÔEØˆJ×Ñ˜v tÐR°$ÀÑRÈ6ÒRØ!×-Ñ-Ó/ˆHÜ×!Ñ!¤'¨8Ô4Ü˜HÓ%ð ×ÑÕøô ×)Ñ)¬6¯<©<Ð8ò 	*Ü ×/Ñ/°
Ó;ˆGØ˜zÐ)ûð	*ûð
 ×ÑÕús%   ÃA(E Å#FÅ3FÆFÆF ÆF%)ÚGETNNN)r   r   r    r!   rI   r#   r   r   r%   r%   6   s   „ Ù0ð CGô9r   r%   )r!   Úhttp.clientÚclientr7   Úloggingr+   r-   Úgoogle.authr   r   r   Ú	getLoggerr   r;   r   r%   r#   r   r   ú<module>rP      sV   ðñ @å !Û Û Û å  Ý "Ý !à
ˆ'×
Ñ
˜HÓ
%€ôˆy×!Ñ!ô ô2<ˆi×Ñõ <r   