
    NBh                         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	  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)_helpers)
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.data1   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)Request6   z&http.client transport request adapter.Nc                 R   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"                  " [$        X!X45        U	R&                  " X(4X4S.UD6  U	R)                  5       n
[         R*                  " [$        U
5        [-        U
5      U	R/                  5         $ ! [        R0                  [         R2                  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)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methodr2   r   r1   kwargspartsr9   
connectionr   
caught_excnew_excs                r   __call__Request.__call__9   sY   0 ?44G ?G %%c*||&&UZZenn=
 <<6!++  &u|| 4 
 !//gN
	  &tEvR$R6R!--/H!!'84H%  ))6<<8 	* //
;G)	*
 s%   A&E $F4FFF F&r*   )GETNNN)r#   r$   r%   r&   r'   rQ   r)   r*   r   r   r,   r,   6   s    0 CG:r   r,   )r'   http.clientclientr?   loggingr3   r5   google.authr   r   r   	getLoggerr#   rC   r   r,   r*   r   r   <module>rY      sT    @ !      " !


H
%y!! 2=i =r   