
    .gz                         S r SSKJr  SSKrSSKrSSKrSSKJr  SSKJ	r	  \R                  " \5      r " S S\	R                  5      r " S S\	R                  5      rg)	z9Transport adapter for http.client, for internal use only.    N)
exceptions)	transportc                   N    \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	Sr
g)	Response   zvhttp.client transport response adapter.

Args:
    response (http.client.HTTPResponse): The raw http client response.
c                     UR                   U l        UR                  5        VVs0 s H  u  p#UR                  5       U_M     snnU l        UR                  5       U l        g s  snnf N)status_status
getheaderslower_headersread_data)selfresponsekeyvalues       gC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\google/auth/transport/_http_client.py__init__Response.__init__#   sN    >F>Q>Q>ST>S
e+>ST]]_
 Us   A!c                     U R                   $ r	   )r   r   s    r   r
   Response.status(   s    ||    c                     U R                   $ r	   )r   r   s    r   headersResponse.headers,   s    }}r   c                     U R                   $ r	   )r   r   s    r   dataResponse.data0   s    zzr   )r   r   r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr
   r   r    __static_attributes__ r   r   r   r      sH    %
      r   r   c                   $    \ rS rSrSr SS jrSrg)Request5   z&http.client transport request adapter.Nc                    Uc  [         R                  nUc  0 n[        R                  R	                  U5      n[        R                  R                  SSUR                  UR                  UR                  45      nUR                  S:w  a/  [        R                  " SR                  UR                  5      5      e[        R                  " UR                  US9n	 [         R#                  SX!5        U	R$                  " X(4X4S.UD6  U	R'                  5       n
[)        U
5      U	R+                  5         $ ! [        R,                  [         R.                  4 a  n[        R                  " U5      nXeSnAff = f! U	R+                  5         f = f)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methodr1   r   r0   kwargspartsr8   
connectionr   
caught_excnew_excs                r   __call__Request.__call__8   sF   0 ?44G ?G %%c*||&&UZZenn=
 <<6!++  &u|| 4 
 !//gN
	MM16?vR$R6R!--/HH%  ))6<<8 	* //
;G)	*
 s%   AD/ /$E0E++E00E3 3Fr)   )GETNNN)r"   r#   r$   r%   r&   rO   r(   r)   r   r   r+   r+   5   s    0 CG9r   r+   )r&   http.clientclientr>   loggingr2   r4   google.authr   r   	getLoggerr"   rA   r   r+   r)   r   r   <module>rW      sQ    @ !    " !


H
%y!! 2<i <r   