/opt/support/venv/lib/python3.13/site-packages/urllib3/util/__pycache__
Edit: /opt/support/venv/lib/python3.13/site-packages/urllib3/util/__pycache__/request.cpython-313.pyc (8384B)
i J % S SK Jr S SKrS SKrS SKrS SKJr S SKJr SSK J
r
SSKJr \R ( a S S KJr S
r\" / SQ5 rSr S SKr\S
-
r \R. S: a S SKJr OS SKJr \S-
r " S S\5 r\R: rS\S' \R@ \!\4 r"1 Skr# S SS jjr$ SS jr%SS jr& " S S\RN 5 r( S S jr)g! \ a S SKr Nf = f! \ a Nf = f! \ a Nf = f)! )annotationsN) b64encode)Enum )UnrewindableBodyError )to_bytes)Finalz@@@SKIP_HEADER@@@)accept-encodinghost
user-agentzgzip,deflatez,br) )zstdz,zstdc \ rS rSrSrSrg)_TYPE_FAILEDTELL, r N)__name__
__module____qualname____firstlineno__token__static_attributes__r F/opt/support/venv/lib/python3.13/site-packages/urllib3/util/request.pyr r , s
Er r zFinal[_TYPE_FAILEDTELL]_FAILEDTELL> GETHEADTRACEDELETECONNECTOPTIONSc 0 nU( aG [ U[ 5 ( a O-[ U[ 5 ( a SR U5 nO[ nXS' U( a X&S' U ( a SUS' U( a. S[ UR
S5 5 R 5 3US' U( a. S[ UR
S5 5 R 5 3US ' U( a S
US' U$ )a
Shortcuts for generating request headers.
:param keep_alive:
If ``True``, adds 'connection: keep-alive' header.
:param accept_encoding:
Can be a boolean, list, or string.
``True`` translates to 'gzip,deflate'. If the dependencies for
Brotli (either the ``brotli`` or ``brotlicffi`` package) and/or
Zstandard (the ``backports.zstd`` package for Python before 3.14)
algorithms are installed, then their encodings are
included in the string ('br' and 'zstd', respectively).
List will get joined by comma.
String will be used as provided.
:param user_agent:
String representing the user-agent you want, such as
"python-urllib3/0.6"
:param basic_auth:
Colon-separated username:password string for 'authorization: basic ...'
auth header.
:param proxy_basic_auth:
Colon-separated username:password string for 'proxy-authorization: basic ...'
auth header.
:param disable_cache:
If ``True``, adds 'cache-control: no-cache' header.
Example:
.. code-block:: python
import urllib3
print(urllib3.util.make_headers(keep_alive=True, user_agent="Batman/1.0"))
# {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}
print(urllib3.util.make_headers(accept_encoding=True))
# {'accept-encoding': 'gzip,deflate'}
,r r
z
keep-alive
connectionzBasic zlatin-1
authorizationzproxy-authorizationzno-cachez
cache-control)
isinstancestrlistjoinACCEPT_ENCODINGr encodedecode)
keep_aliveaccept_encoding
user_agent
basic_authproxy_basic_auth
disable_cacheheaderss r make_headersr6 <