hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Ë
ê^i« ãó.—UddlmZddlZddlZddlZddlmZddlmZddl    m
Z
ddl m Z ejrdd    lmZd
Zegd ¢«Zd Z        ddlZed z Z    ej.dk\rddlmZnddlmZedz ZGd„de«Zej:Zded<ej@e!efZ"hd£Z#                        d                                                    dd„Z$                        dd„Z%dd„Z&Gd„dejN«Z(                                d d„Z)y#e$rddlZYŒ«wxYw#e$rYŒ±wxYw#e$rYŒšwxYw)!é)Ú annotationsN)Ú    b64encode)ÚEnumé)ÚUnrewindableBodyErroré)Úto_bytes)ÚFinalz@@@SKIP_HEADER@@@)úaccept-encodingÚhostú
user-agentz gzip,deflatez,br)éé)Úzstdz,zstdcó—eZdZdZy)Ú_TYPE_FAILEDTELLrN)Ú__name__Ú
__module__Ú __qualname__Útoken©óõgH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\urllib3/util/request.pyrr,s„Ø ErrzFinal[_TYPE_FAILEDTELL]Ú _FAILEDTELL>ÚGETÚHEADÚTRACEÚDELETEÚCONNECTÚOPTIONScót—i}|r>t|t«rn(t|t«rdj|«}nt}||d<|r||d<|rd|d<|r.dt |j d««j«›|d<|r.dt |j d««j«›|d    <|rd
|d <|S) 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)Ú
isinstanceÚstrÚlistÚjoinÚACCEPT_ENCODINGrÚencodeÚdecode)Ú
keep_aliveÚaccept_encodingÚ
user_agentÚ
basic_authÚproxy_basic_authÚ disable_cacheÚheaderss       rÚ make_headersr3<sրðd!€GÙÜ o¤sÔ +Ø Ü ˜¬Ô .Ø!Ÿh™h Ó7‰Oä-ˆOØ%4ˆÐ!Ñ"áØ *ˆ ÑáØ ,ˆ Ñáà”Y˜z×0Ñ0°Ó;Ó<×CÑCÓEÐFÐ Gð    Ñ ñà”YÐ/×6Ñ6°yÓAÓB×IÑIÓKÐLÐ Mð    Ð%Ñ&ñØ#-ˆÑ à €Nrcó’—|t||«|St|dd«    |j«}|S|S#t$r
t}Y|SwxYw)z
    If a position is provided, move file to that point.
    Otherwise, we'll attempt to record a position for future use.
    NÚtell)Ú rewind_bodyÚgetattrr5ÚOSErrorr)ÚbodyÚposs  rÚset_file_positionr;Žsc€ð €ÜD˜#Ôð €Jô
v˜tÓ    $Р   0ð    Ø—)‘)“+ˆCð €Jˆ3€Jøô ò    ô‰Cà €Jð     úsŸ3³AÁAcóä—t|dd«}|t|t«r
    ||«y|t
ur t    d«‚t dt|«›d«‚#t$r}t    d«|‚d}~wwxYw)zæ
    Attempt to rewind body to a certain position.
    Primarily used for request redirects and retries.
 
    :param body:
        File-like object that supports seek.
 
    :param int pos:
        Position to seek to in file.
    ÚseekNzAAn error occurred when rewinding request body for redirect/retry.zRUnable to record file position for rewinding request body during a redirect/retry.z1body_pos must be of type integer, instead it was ú.)r7r%Úintr8rrÚ
ValueErrorÚtype)r9Úbody_posÚ    body_seekÚes    rr6r6¢s€ô˜˜f dÓ+€IØÐ¤¨H´cÔ!:ð    Ù hÕ ð
 
”[Ñ     Ü#ð 4ó
ð    
ô
Ø?ÄÀXÃÐ?OÈqÐ Qó
ð    
øôò    Ü'ØSóàð ûð    ús¡AÁ    A/Á A*Á*A/có"—eZdZUded<ded<y)ÚChunksAndContentLengthztyping.Iterable[bytes] | NoneÚchunksz
int | NoneÚcontent_lengthN)rrrÚ__annotations__rrrrFrFÀs…Ø )Ó)ØÔrrFc󦇇—‰€d}|j«tvrd}nld}nit‰ttf«rt ‰«f}t |d«}n8t‰d«rdˆˆfd„ }|«}d}n    t‰«}‰f}|j}t||¬«S#t$r.    t‰«}d}n#t$rtd‰›«d‚wxYwYŒCwxYw)aRTakes the HTTP request method, body, and blocksize and
    transforms them into an iterable of chunks to pass to
    socket.sendall() and an optional 'Content-Length' header.
 
    A 'Content-Length' of 'None' indicates the length of the body
    can't be determined so should use 'Transfer-Encoding: chunked'
    for framing instead.
    NrÚreadc3óš•K—t‰tj«}    ‰j‰«}|sy|r|j    d«}|–—Œ,­w)Nzutf-8)r%ÚioÚ
TextIOBaserKr*)r*Ú    datablockÚ    blocksizer9s  €€rÚchunk_readablez&body_to_chunks.<locals>.chunk_readableæsKøèø€Ü ¤b§m¡mÓ4ˆFØØ ŸI™I iÓ0    Ù ØÙØ )× 0Ñ 0°Ó 9IØ’ð ùsƒAA zO'body' must be a bytes-like object, file-like object, or iterable. Instead was )rGrH)Úreturnztyping.Iterable[bytes]) ÚupperÚ_METHODS_NOT_EXPECTING_BODYr%r&Úbytesr    ÚlenÚhasattrÚ
memoryviewÚnbytesÚ    TypeErrorÚiterrF)r9ÚmethodrPrGrHrQÚmvs` `    rÚbody_to_chunksr^Åsùù€ð$ €|ØˆØ <‰<‹>Ô!<Ñ <؉Nà!‰Nô
Dœ3¤˜,Ô    'ܘ4“.Ð"ˆÜ˜V A™Y›‰ô
vÔ    ö     ñ Ó!ˆØ‰ð    'ä˜DÓ!ˆBðWˆFØŸY™YˆNä !¨ÀÔ OÐOøôò        ð ä˜d›Ø!%‘øÜò Üð8Ø8<°xðAóððð úñð            ús*Á2 B    CÂ# B1Â0CÂ1C
CÃC)NNNNNN)r,ú bool | Noner-zbool | list[str] | str | Noner.ú
str | Noner/r`r0r`r1r_rRzdict[str, str])r9z
typing.Anyr:ú_TYPE_BODY_POSITION | NonerRra)r9ztyping.IO[typing.AnyStr]rBÚ_TYPE_BODY_POSITIONrRÚNone)r9ztyping.Any | Noner\r&rPr?rRrF)*Ú
__future__rrMÚsysÚtypingÚbase64rÚenumrÚ
exceptionsrÚutilr    Ú TYPE_CHECKINGr
Ú SKIP_HEADERÚ    frozensetÚSKIPPABLE_HEADERSr)Ú
brotlicffiÚ_unused_module_brotliÚ ImportErrorÚbrotliÚ version_infoÚ compressionrÚ_unused_module_zstdÚ    backportsrrrrIÚUnionr?rbrTr3r;r6Ú
NamedTuplerFr^rrrú<module>rys¼ðÞ"ã    Û
Û ÝÝå.Ýà    ×ÒÝð "€ ÙÒGÓHÐà €ðð/Û2ð uÑ€OðØ
×ј7Ò"Þ;å9ðwÑ€Oôtôð(8×'=Ñ'=€ Ð $Ó=à—l‘l 3Ð(8Ð#8Ñ9ÐòWÐð#Ø59Ø!Ø!Ø#'Ø!%ð OØðOà2ðOððOðð    Oð
!ð Oð ð OðóOðdØ
ðØ5ðàóó(
ô<˜V×.Ñ.ôð
BPØ
ðBPØ%(ðBPØ58ðBPàôBPøðW ò/Ý.ð/ûàò    Ùð    ûðò    Ùð    ús<ÁC2ÁD Ã2    C>Ã;DÃ=C>Ã>DÄD    ÄD    Ä DÄD