/usr/local/lib64/python3.6/site-packages/aiohttp/__pycache__
NameSizeModeActions
abc.cpython-36.pyc85280644editdlrm
base_protocol.cpython-36.pyc28240644editdlrm
client.cpython-36.pyc299650644editdlrm
client_exceptions.cpython-36.pyc113690644editdlrm
client_proto.cpython-36.pyc60410644editdlrm
client_reqrep.cpython-36.pyc277000644editdlrm
client_ws.cpython-36.pyc88240644editdlrm
connector.cpython-36.pyc352730644editdlrm
cookiejar.cpython-36.pyc108520644editdlrm
formdata.cpython-36.pyc44400644editdlrm
hdrs.cpython-36.pyc44730644editdlrm
helpers.cpython-36.pyc260370644editdlrm
http.cpython-36.pyc14220644editdlrm
http_exceptions.cpython-36.pyc43960644editdlrm
http_parser.cpython-36.pyc191820644editdlrm
http_websocket.cpython-36.pyc149420644editdlrm
http_writer.cpython-36.pyc54930644editdlrm
locks.cpython-36.pyc15820644editdlrm
log.cpython-36.pyc4230644editdlrm
multipart.cpython-36.pyc263120644editdlrm
payload.cpython-36.pyc134330644editdlrm
payload_streamer.cpython-36.pyc31820644editdlrm
pytest_plugin.cpython-36.pyc98700644editdlrm
resolver.cpython-36.pyc39400644editdlrm
streams.cpython-36.pyc186050644editdlrm
tcp_helpers.cpython-36.pyc10760644editdlrm
test_utils.cpython-36.pyc216670644editdlrm
tracing.cpython-36.pyc148570644editdlrm
typedefs.cpython-36.pyc14820644editdlrm
web.cpython-36.pyc107440644editdlrm
web_app.cpython-36.pyc151180644editdlrm
web_exceptions.cpython-36.pyc127660644editdlrm
web_fileresponse.cpython-36.pyc59350644editdlrm
web_log.cpython-36.pyc71820644editdlrm
web_middlewares.cpython-36.pyc38630644editdlrm
web_protocol.cpython-36.pyc157610644editdlrm
web_request.cpython-36.pyc238740644editdlrm
web_response.cpython-36.pyc210930644editdlrm
web_routedef.cpython-36.pyc79730644editdlrm
web_runner.cpython-36.pyc117550644editdlrm
web_server.cpython-36.pyc26810644editdlrm
web_urldispatcher.cpython-36.pyc422300644editdlrm
web_ws.cpython-36.pyc132810644editdlrm
worker.cpython-36.pyc69630644editdlrm
__init__.cpython-36.pyc42700644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/aiohttp/__pycache__/client.cpython-36.pyc (29965B)
3 8%Eg0*@sUdZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z m Z ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlZddl m!Z!m"Z"m#Z#m$Z$ddl%m&Z&dd l'm(Z(m)Z)m*Z*dd l+m,Z,dd l-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;mZ>m?Z?m@Z@dd lAmBZBmCZCmDZDmEZEmFZFdd lGmHZHddlImJZJmKZKmLZLmMZMddlNmOZOddlPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYddl)mZZZm[Z[m\Z\m]Z]ddl^m_Z_m`Z`maZambZbddlcmdZdddlemfZfmgZgddlhmiZimjZjmkZkmlZlmmZmy ddlnZoWnepk rTddlqZoYnXdNZrydd5lsmtZtWnepk reuZtYnXejvd6d6d6d7Gd8d3d3ZwewdOd;Zxeiewxed<ZyeeCezge{fZ|eCeze{d=d>d?Z}Gd@d2d2Z~GdAdBdBeeeeyfeeyZGdCdDdDeeCZGdEdFdFeeHZGdGdHdHZddddddd6dIdddJdd6ddeXde)jddddKe{emeee{e{feeeeleee{eeSeeee{eeeeeeeemeeSeeweufeeke[eeJeeeejedLdMd4ZdS)PzHTTP Client for asyncio.N)suppress)SimpleNamespace TracebackType)Any AwaitableCallable Coroutine FrozenSet GeneratorGenericIterableListMappingOptionalSetTupleTypeTypeVarUnion) CIMultiDict MultiDictMultiDictProxyistr)URL)hdrshttppayload)AbstractCookieJar)ClientConnectionErrorClientConnectorCertificateErrorClientConnectorErrorClientConnectorSSLError ClientErrorClientHttpProxyError ClientOSErrorClientPayloadErrorClientProxyConnectionErrorClientResponseErrorClientSSLErrorContentTypeError InvalidURLServerConnectionErrorServerDisconnectedErrorServerFingerprintMismatchServerTimeoutErrorTooManyRedirectsWSServerHandshakeError) ClientRequestClientResponse Fingerprint RequestInfo_merge_ssl_params)ClientWebSocketResponse) BaseConnectorNamedPipeConnector TCPConnector UnixConnector) CookieJar) DEBUGPY_36 BasicAuth TimeoutHandle ceil_timeoutget_env_proxy_for_urlget_running_loopsentinelstrip_auth_from_url)WS_KEY HttpVersionWebSocketReaderWebSocketWriter)WSHandshakeError WSMessage ws_ext_gen ws_ext_parse)FlowControlDataQueue)Trace TraceConfig)Final JSONEncoder LooseCookies LooseHeadersStrOrURLrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r8r:r;r9r7 ClientSession ClientTimeoutrequest) SSLContextT)Z auto_attribsfrozenslotsc@s>eZdZUdZeedZeedZeedZeedS)rWN) __name__ __module__ __qualname__totalrfloatconnect sock_read sock_connectrdrd:/usr/local/lib64/python3.6/site-packages/aiohttp/client.pyrWs    <)r__RetType)responsebodyreturncCs.tj|dpd}|dkr*tjdtdd|S)Nencodingzutf-8zAutomatic charset detection will be removed in 3.9, see: https://docs.aiohttp.org/en/stable/client_advanced.html#character-set-detection) stacklevel)chardetdetectwarningswarnDeprecationWarning)rirjretrdrdre"_default_fallback_charset_resolversrucsXeZdZdZedddddddd d d d d ddddddddddgZdZdZdddddddej e e e e jdddededddddedeeeeeejeeeeeeeeeeee ee ee eeeeee e!e"fee!e e"e#feeeee$e%e&e'dddd Z(eddd!d"d#Z)e*rZ:e8j9fd6dddddddddddddddd7dd:eeeee!ee!eeee!eeeeee2eefeeeeeee e4ede5feeee3ee4eee&e&e d<d?d@Z;eedAdBdCdDZddEeee+d*dFdKdLZ?ddMee+e+d*dNdOdPZ@ddMee+e+d*dNdQdRZAddMee+e+d*dNdSdTZBee+d*dUdVdWZCddXdYdZZDeEedXd[d\ZFeEeedXd]d^ZGeEedXd_d`ZHeEeIe&e&fdXdadbZJeEedXdcddZKeKjLeddedfddZKeEejdXdgdhZMeEe#dXdidjZNeEdAdXdkdlZOeEePeQdXdmdnZReEeedXdodpZSeEedXdqdrZTeEedXdsdtZUeEe eeVe geWdffdXdudvZXeEedXdwdxZYeEedXdydzZZeEe$e%dXd{d|Z[ddXd}d~Z\ddXddZ]eee^ee^ee_ddddZ`ddXddZaeee^ee^ee_ddddZbZcS)rVz/First-class interface for making HTTP requests. _base_url_source_traceback _connectorrequote_redirect_url_loop _cookie_jar_connector_owner _default_auth_version_json_serialize_requote_redirect_url_timeout_raise_for_status_auto_decompress _trust_env_default_headers_skip_auto_headers_request_class_response_class_ws_response_class_trace_configs _read_bufsizeNTF) connectorloopcookiesheadersskip_auto_headersauthjson_serialize request_classresponse_classws_response_classversion cookie_jarconnector_ownerraise_for_status read_timeout conn_timeouttimeoutauto_decompress trust_envry trace_configs read_bufsizefallback_charset_resolver)base_urlrrrrrrrrrrrrrrrrrrrryrrrrkcCs |dkr|dk r|j}t|}|dks0t|tr8||_n"t||_|jj|jksZtd|dkrlt|d}|j|k r~td||_|j rt j t j d|_| dkrt|d} | |_|dk r|jj|||_||_||_| |_||_|tkrRt|_|tk r$tjdtddtj|j|d|_|dk r|tj|j|d |_tjd tddn*||_|tk rjtd |dk r|td ||_ ||_!||_"||_#||_$|rt%|}nt%}||_&|dk rt'd d|D|_(nt'|_(| |_)| |_*| |_+|pg|_,x|j,D]}|j-qW||_.dS)Nz2Only absolute URLs without path part are supported)rz0Session and connector has to use same event looprz8read_timeout is deprecated, use timeout argument insteadr)rn)r_)raz8conn_timeout is deprecated, use timeout argument insteadzGread_timeout and timeout parameters conflict, please setup timeout.readzJconn_timeout and timeout parameters conflict, please setup timeout.connectcss|]}t|VqdS)N)r).0irdrdre Hsz)ClientSession.__init__..)/rzrC isinstancerrvoriginAssertionErrorr: RuntimeError get_debug traceback extract_stacksys _getframerwr<r{update_cookiesrxr|r}r~rrDDEFAULT_TIMEOUTrrqrrrsattrZevolve ValueErrorrrrrrrr frozensetrrrrrfreezeZ_resolve_charset)selfrrrrrrrrrrrrrrrrrrrrryrrr real_headers trace_configrdrdre__init__s               zClientSession.__init__)clsrkcCstjdj|jtdddS)Nz6Inheritance class {} from ClientSession is discouragedr)rn)rqrrformatr\rs)rrdrdre__init_subclass__Vs zClientSession.__init_subclass__)namevalrkcs2||jkr tjdj|tddtj||dS)Nz8Setting custom ClientSession.{} attribute is discouragedr)rn)ATTRSrqrrrrssuper __setattr__)rrr) __class__rdrer`s zClientSession.__setattr__) _warningsrkcCs\|jsXtrd|i}ni}|jd|tf||dd}|jdk rL|j|d<|jj|dS)NsourcezUnclosed client session zUnclosed client session)Zclient_sessionmessagesource_traceback)closedr>rrResourceWarningrwrzcall_exception_handler)rrkwargscontextrdrdre__del__js    zClientSession.__del___RequestContextManager)methodurlrrkcKst|j||f|S)zPerform HTTP request.)r_request)rrrrrdrdrerXxszClientSession.request) str_or_urlrkcCs@t|}|jdkr|S|j r,|jjds0t|jj|SdS)N/)rrv is_absolutepath startswithrjoin)rrrrdrdre _build_url~s  zClientSession._build_url )paramsdatajsonrrrrallow_redirects max_redirectscompresschunked expect100rread_until_eofproxy proxy_authr verify_ssl fingerprint ssl_contextssl proxy_headerstrace_request_ctxr)rrrrrrrrrrrrrrrrrrrrrrrrrrrkc3dsvjrtdt||||}|dk r6|dk r6tdn|dk rNtj|jd}t| t rn| dk rnt j dt d}g}j }j |}j |}yj|}Wn,tk r}zt||WYdd}~XnXtj} |dk rx|D]}!| jt|!qW|dk r@y t|}Wn.tk r>}zt||WYdd}~XnX|tkrRj}"nt|tsjt|d}"n|}"tj|"j}#|#j}$|dkrj}fddjD}%x(|%D] }&|&j||j||IdHqW|#j }'y&|'xt!|\}}(| r |(r td | dkr|(} | dkr*j"} |dk rR| dk rRt#j$|krRtd j%j&|})|dk rt'}*|*j(||*j&|}+|+r|)j)|+|dk rt|}n(j*rt+t,t-|\}}WdQRXj.||||| ||)| || | |jj/|||'|||%d },yPt0|"j14IdH.j2dk s,t3j2j1|,|%|"d IdH}-WdQIdHRXWn6t4j5k r}.zt6d j7||.WYdd}.~.XnX|-j8dk st3|-j9dk st3|-j9j:|'|j;dk|j<|"j=|dypyJ|,j>|-IdH}/y|/j|-IdHWn t?k r|/j@YnXWn t?k r>|-j@YnXWnbtAk rZYnLtBk r}.z.|.jCdkrt|.t4j5rtD|.jE|.WYdd}.~.XnXj%j(|/jF|/jG|/jHdkrn| rnx*|%D]"}&|&jI||j|||/IdHqW|d7}|jJ|/| r4|| kr4|/j@tK|djLtM||/jHdkrN|/jNt#jOksh|/jHdkr|/jNt#jPkrt#jQ}d}|jRt#jSr|jTt#jS|/jUjRt#jVp|/jUjRt#jW}0|0dkrPn|/jXyt|0jY d}1Wn.tk r}zt|0|WYdd}~XnX|1jZ}2|2dkr&|/j@tdn|2s6|j[|1}1|j\|1j\krZd} |jTt#j$d|1}d}|/jXqPqWWdQRX|dkrj]}|r|/j^|$dk r|/j_dk r|/j_j`|$jan|$jatM||/_bx*|%D]"}&|&jc||j|||/IdHqW|/St?k rp}zN|#j@|$r2|$jad}$x*|%D]"}&|&jd||j|||IdHq8WWYdd}~XnXdS)NzSession is closedz9data and json parameters can not be used at the same time)dumpszChunk size is deprecated #1615r)r_cs g|]}t||jdqS))r)rOZtrace_config_ctx)rr)rrrdre sz*ClientSession._request..z.rr)rT)Zuse_maskr notakeover)r&r)rZclient_notakeoveri)0rrUPGRADEZ CONNECTIONZSEC_WEBSOCKET_VERSIONitems setdefaultbase64 b64encodeosurandomdecodeZSEC_WEBSOCKET_KEYrZSEC_WEBSOCKET_PROTOCOLZORIGINrLZSEC_WEBSOCKET_EXTENSIONSr6rXr r1r rrrlowerZSEC_WEBSOCKET_ACCEPThashlibsha1rFdigestsplitrMrJr rrrrrNrz set_parserrHrIrrr)*rrrr%rr&r'r(r)rrrrrrrrrrrrr*rdefault_headerskeyvalueZsec_keyZextstrr"Zr_keymatchrZresp_protocolsr2r3Z compress_hdrsr!r Z conn_protorreaderwriterrdrdrer,s             zClientSession._ws_connectzCIMultiDict[str])rrkcCslt|j}|rht|ttfs$t|}t}x<|jD]0\}}||krR|j||q4|||<|j|q4W|S)z3Add default headers and transform it to CIMultiDict)rrrrrrr5r)rrresultZ added_namesrCrDrdrdrers zClientSession._prepare_headers)r)rrrrkcKst|jtj|fd|i|S)zPerform HTTP GET request.r)rrrr)rrrrrdrdrerszClientSession.getcKst|jtj|fd|i|S)zPerform HTTP OPTIONS request.r)rrrZ METH_OPTIONS)rrrrrdrdreoptionsszClientSession.optionscKst|jtj|fd|i|S)zPerform HTTP HEAD request.r)rrrr)rrrrrdrdreheadszClientSession.head)r)rrrrkcKst|jtj|fd|i|S)zPerform HTTP POST request.r)rrrr)rrrrrdrdrepostszClientSession.postcKst|jtj|fd|i|S)zPerform HTTP PUT request.r)rrrZMETH_PUT)rrrrrdrdreputszClientSession.putcKst|jtj|fd|i|S)zPerform HTTP PATCH request.r)rrrZ METH_PATCH)rrrrrdrdrepatchszClientSession.patch)rrrkcKst|jtj|f|S)zPerform HTTP DELETE request.)rrrZ METH_DELETE)rrrrdrdredeleteszClientSession.delete)rkcs0|js,|jdk r&|jr&|jjIdHd|_dS)zMClose underlying connector. Release all acquired resources. N)rrxr|r)rrdrdrerszClientSession.closecCs|jdkp|jjS)z@Is client session closed. A readonly property. N)rxr)rrdrdrerszClientSession.closedcCs|jS)z(Connector instance used for the session.)rx)rrdrdrerszClientSession.connectorcCs|jS)zThe session cookies.)r{)rrdrdrerszClientSession.cookie_jarcCs|jS)z"The session HTTP protocol version.)r~)rrdrdrerszClientSession.versioncCs|jS)z)Do URL requoting on redirection handling.)r)rrdrdrerysz"ClientSession.requote_redirect_url)rrkcCstjdtdd||_dS)z)Do URL requoting on redirection handling.z=session.requote_redirect_url modification is deprecated #2778r)rnN)rqrrrsr)rrrdrdrery s cCstjdtdd|jS)zSession's loop.z"client.loop property is deprecatedr)rn)rqrrrsrz)rrdrdrers zClientSession.loopcCs|jS)zTimeout for the session.)r)rrdrdrerszClientSession.timeoutcCs|jS)z*The default headers of the client session.)r)rrdrdrer$szClientSession.headerscCs|jS)z2Headers for which autogeneration should be skipped)r)rrdrdrer)szClientSession.skip_auto_headerscCs|jS)z2An object that represents HTTP Basic Authorization)r})rrdrdrer.szClientSession.authcCs|jS)zJson serializer callable)r)rrdrdrer3szClientSession.json_serializecCs|jS)z-Should connector be closed on session closing)r|)rrdrdrer8szClientSession.connector_ownercCs|jS)zGShould `ClientResponse.raise_for_status()` be called for each response.)r)rrdrdrer=szClientSession.raise_for_statuscCs|jS)z7Should the body response be automatically decompressed.)r)rrdrdrerDszClientSession.auto_decompresscCs|jS)z Should proxies information from environment or netrc be trusted. Information is from HTTP_PROXY / HTTPS_PROXY environment variables or ~/.netrc file if present. )r)rrdrdrerIszClientSession.trust_envcCs|jS)z7A list of TraceConfig instances used for client tracing)r)rrdrdrerSszClientSession.trace_configscCs d|_dS)zwDetach connector from session without closing the former. Session is switched to closed state anyway. N)rx)rrdrdredetachXszClientSession.detachcCs tddS)NzUse async with instead) TypeError)rrdrdre __enter___szClientSession.__enter__)exc_typeexc_valexc_tbrkcCsdS)Nrd)rrRrSrTrdrdre__exit__bszClientSession.__exit__cs|S)Nrd)rrdrdre __aenter__kszClientSession.__aenter__cs|jIdHdS)N)r)rrRrSrTrdrdre __aexit__nszClientSession.__aexit__)Niii@ii@)dr\r]r^__doc__rrrwrxrrr2r3r7r HttpVersion11rDrurrUr8rAbstractEventLooprSrTr strr?rRrrGrrrr`objectrWr rPint_CharsetResolverrrr=rrrqrrXrrrbytesrYr4rrrrr-r,rrrIrJrKrLrMrNrpropertyrrrrrrysetterrrrr rrrrrrrrrrrrOrQrrrUrVrW __classcell__rdrd)rrerVsx_  x x        &   c@seZdZdZeddefddddZdddd d Zeddd d Z dd ddZ e e defd ddZ e e defd ddZed ddZdS)_BaseRequestContextManager_coro_respzasyncio.Future[Any]N)cororkcCs ||_dS)N)rd)rrfrdrdrer{sz#_BaseRequestContextManager.__init__)argrkcCs |jj|S)N)rdr)rrgrdrdrer~sz_BaseRequestContextManager.sendcCs|jj|dS)N)rdthrow)rrgrdrdrerhsz _BaseRequestContextManager.throw)rkcCs |jjS)N)rdr)rrdrdrersz _BaseRequestContextManager.closecCs|jj}|S)N)rd __await__)rrtrdrdreris z$_BaseRequestContextManager.__await__cCs|jS)N)ri)rrdrdre__iter__sz#_BaseRequestContextManager.__iter__cs|jIdH|_|jS)N)rdre)rrdrdrerVsz%_BaseRequestContextManager.__aenter__)rdre)r\r]r^ __slots__rrhrrrrhrr rrirjrVrdrdrdrercwsrcc@s4eZdZfZeeeeeeeddddZdS)rN)rRr!tbrkcs|jjdS)N)rer)rrRr!rlrdrdrerWs z _RequestContextManager.__aexit__) r\r]r^rkrrrrrWrdrdrdrers  rc@s4eZdZfZeeeeeeeddddZdS)r+N)rRr!rlrkcs|jjIdHdS)N)rer)rrRr!rlrdrdrerWsz"_WSRequestContextManager.__aexit__) r\r]r^rkrrrrrWrdrdrdrer+s  r+c@s^eZdZdZeddefeddddZed d d Ze e e e e e e dd d dZ dS)_SessionRequestContextManagerrdre_sessionzasyncio.Future[Any]N)rfrrkcCs||_d|_||_dS)N)rdrern)rrfrrdrdrersz&_SessionRequestContextManager.__init__)rkc sDy|jIdH|_Wn&tk r8|jjIdHYnX|jSdS)N)rdrerrnr)rrdrdrerVs z(_SessionRequestContextManager.__aenter__)rRr!rlrkcs,|jdk st|jj|jjIdHdS)N)rerrrn)rrRr!rlrdrdrerWs z'_SessionRequestContextManager.__aexit__)rdrern)r\r]r^rkrr3rVrrVrrrrrWrdrdrdrerms  rmrF)rrrrrrrrrrrrrrrrrrrrr)rrrrrrrrrrrrrrrrrrrrrrrrkcCsdd}|dkrd}t|dd}t||||||d}t|j|||||||||| | | | | ||||d|S)aConstructs and sends a request. Returns response object. method - HTTP method url - request url params - (optional) Dictionary or bytes to be sent in the query string of the new request data - (optional) Dictionary, bytes, or file-like object to send in the body of the request json - (optional) Any json compatible python object headers - (optional) Dictionary of HTTP Headers to send with the request cookies - (optional) Dict object to send with the request auth - (optional) BasicAuth named tuple represent HTTP Basic Auth auth - aiohttp.helpers.BasicAuth allow_redirects - (optional) If set to False, do not follow redirects version - Request HTTP version. compress - Set to True if request has to be compressed with deflate encoding. chunked - Set to chunk size for chunked transfer encoding. expect100 - Expect 100-continue response from server. connector - BaseConnector sub-class instance to support connection pooling. read_until_eof - Read response until eof if response does not have Content-Length header. loop - Optional event loop. timeout - Optional ClientTimeout settings structure, 5min total timeout by default. Usage:: >>> import aiohttp >>> resp = await aiohttp.request('GET', 'http://python.org/') >>> resp >>> data = await resp.read() FNT)rZ force_close)rrrrrr)rrrrrrrrrrrrrrrr)r:rVrmr)rrrrrrrrrrrrrrrrrrrrrrrrrrdrdrerXs@> )rr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r8r:r;r9r7rVrWrXi,)rXrr7r=rr9rrrq contextlibrtypesrrtypingrrrrr r r r r rrrrrrrrZ multidictrrrrZyarlrrrrrabcrZclient_exceptionsrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1Z client_reqrepr2r3r4r5r6Z client_wsr7rr8r9r:r; cookiejarr<Zhelpersr=r>r?r@rArBrCrDrErFrGrHrIZhttp_websocketrJrKrLrMstreamsrNZtracingrOrPZtypedefsrQrRrSrTrUZcchardetro ImportErrorZcharset_normalizer__all__rrYr\srWrrhr_r[r^rurVrcrr+rmrYrr]rZrXrdrdrdres H  T  ,    E  %~