/opt/imunify360/venv/lib/python3.11/site-packages/urllib3/__pycache__
NameSizeModeActions
connection.cpython-311.pyc211220644editdlrm
connectionpool.cpython-311.pyc361590644editdlrm
exceptions.cpython-311.pyc161470644editdlrm
fields.cpython-311.pyc114400644editdlrm
filepost.cpython-311.pyc45210644editdlrm
poolmanager.cpython-311.pyc218270644editdlrm
request.cpython-311.pyc66840644editdlrm
response.cpython-311.pyc343540644editdlrm
_collections.cpython-311.pyc183210644editdlrm
_version.cpython-311.pyc2420644editdlrm
__init__.cpython-311.pyc32910644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/urllib3/__pycache__/request.cpython-311.pyc (6684B)
§ ÃÛcqUà€ãóL—ddlmZddlmZddlmZdgZGd„de¦«ZdS)é)Úabsolute_importé)Úencode_multipart_formdata)Ú urlencodeÚRequestMethodscóR—eZdZdZhd£Zd d„Z d d„Zd d„Zd d„Z d d „Z dS) ra· Convenience mixin for classes who implement a :meth:`urlopen` method, such as :class:`urllib3.HTTPConnectionPool` and :class:`urllib3.PoolManager`. Provides behavior for making common types of HTTP request methods and decides which type of request field encoding to use. Specifically, :meth:`.request_encode_url` is for sending requests whose fields are encoded in the URL (such as GET, HEAD, DELETE). :meth:`.request_encode_body` is for sending requests whose fields are encoded in the *body* of the request using multipart or www-form-urlencoded (such as for POST, PUT, PATCH). :meth:`.request` is for making any kind of request, it will look up the appropriate encoding format and use one of the above two methods to make the request. Initializer parameters: :param headers: Headers to include with all requests, unless other headers are given explicitly. >ÚGETÚHEADÚDELETEÚOPTIONSNcó—|pi|_dS©N)Úheaders)Úselfrs úo/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/urllib3/request.pyÚ__init__zRequestMethods.__init__(s€Ø�} "ˆŒ ˆ ˆ óTc ó —td¦«‚)NzMClasses extending RequestMethods must implement their own ``urlopen`` method.)ÚNotImplementedError)rÚmethodÚurlÚbodyrÚencode_multipartÚmultipart_boundaryÚkws rÚurlopenzRequestMethods.urlopen+s€õ"ð ,ñ ô ð rc óŽ—| ¦«}||d<||jvr|j||f||dœ|¤ŽS|j||f||dœ|¤ŽS)aá Make a request using :meth:`urlopen` with the appropriate encoding of ``fields`` based on the ``method`` used. This is a convenience method that requires the least amount of manual effort. It can be used in most situations, while still having the option to drop down to more specific methods when necessary, such as :meth:`request_encode_url`, :meth:`request_encode_body`, or even the lowest level :meth:`urlopen`. Ú request_url)Úfieldsr)ÚupperÚ_encode_url_methodsÚrequest_encode_urlÚrequest_encode_body)rrrrrÚ urlopen_kws rÚrequestzRequestMethods.request:s‘€ð—’‘”ˆà$'ˆ �=Ñ!à �TÔ-Ð -Ð -Ø*�4Ô*ؘðØ$*°GððØ?Iððð ð,�4Ô+ؘðØ$*°GððØ?Iððð rc ó’—|€|j}d|i}| |¦«|r|dt|¦«zz }|j||fi|¤ŽS)z¦ Make a request using :meth:`urlopen` with the ``fields`` encoded in the url. This is useful for request methods like GET, HEAD, DELETE, etc. Nrú?)rÚupdaterr)rrrrrr$Úextra_kws rr"z!RequestMethods.request_encode_urlRsg€ð ˆ?Ø”lˆGà˜wÐ'ˆØ�Š˜ Ñ#Ô#Ð#à ð +Ø �3� 6Ñ*Ô*Ñ*Ñ *ˆCàˆtŒ|˜F CÐ4Ð4¨8Ð4Ð4Ð4rc ó,—|€|j}dii}|rGd|vrtd¦«‚|rt||¬¦«\} } nt|¦«d} } | |d<d| i|d<|d |¦«| |¦«|j||fi|¤ŽS)a¼ Make a request using :meth:`urlopen` with the ``fields`` encoded in the body. This is useful for request methods like POST, PUT, PATCH, etc. When ``encode_multipart=True`` (default), then :func:`urllib3.encode_multipart_formdata` is used to encode the payload with the appropriate content type. Otherwise :func:`urllib.parse.urlencode` is used with the 'application/x-www-form-urlencoded' content type. Multipart encoding must be used when posting files, and it's reasonably safe to use it in other times too. However, it may break request signing, such as with OAuth. Supports an optional ``fields`` parameter of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type) tuple where the MIME type is optional. For example:: fields = { 'foo': 'bar', 'fakefile': ('foofile.txt', 'contents of foofile'), 'realfile': ('barfile.txt', open('realfile').read()), 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'), 'nonamefile': 'contents of nonamefile field', } When uploading a file, providing a filename (the first parameter of the tuple) is optional but recommended to best mimic behavior of browsers. Note that if ``headers`` are supplied, the 'Content-Type' header will be overwritten because it depends on the dynamic random boundary string which is used to compose the body of the request. The random boundary string can be explicitly set with the ``multipart_boundary`` parameter. NrrzFrequest got values for both 'fields' and 'body', can only specify one.)Úboundaryz!application/x-www-form-urlencodedz Content-Type)rÚ TypeErrorrrr(r) rrrrrrrr$r)rÚ content_types rr#z"RequestMethods.request_encode_bodybsç€ðZ ˆ?Ø”lˆGà˜r�?ˆà ð AؘÐ#Ð#ÝØ\ñôðð ð Ý%>ØÐ%7ð&ñ&ô&Ñ"��l�lõ ˜fÑ%Ô%Ø7ð#�ð $ˆH�VÑ Ø#1°<Ð"@ˆH�YÑ à�Ô×"Ò" 7Ñ+Ô+Ð+Ø�Š˜ Ñ#Ô#Ð#àˆtŒ|˜F CÐ4Ð4¨8Ð4Ð4Ð4rr)NNTN)NN) Ú__name__Ú __module__Ú __qualname__Ú__doc__r!rrr%r"r#©rrrr s²€€€€€ððð8?Ð>Ð>Ðð%ð%ð%ð%ðØØØð  ð  ð  ð  ððððð05ð5ð5ð5ð(ØØØðH5ðH5ðH5ðH5ðH5ðH5rN) Ú __future__rÚfilepostrÚpackages.six.moves.urllib.parserÚ__all__Úobjectrr2rrúr8s�ðØ&Ð&Ð&Ð&Ð&Ð&à/Ð/Ð/Ð/Ð/Ð/Ø6Ð6Ð6Ð6Ð6Ð6à Ð €ða5ða5ða5ða5ða5�Vña5ôa5ða5ða5ða5r