/opt/alt/python311/lib64/python3.11/wsgiref/__pycache__
NameSizeModeActions
handlers.cpython-311.opt-1.pyc244900644editdlrm
handlers.cpython-311.opt-2.pyc192380644editdlrm
handlers.cpython-311.pyc254380644editdlrm
headers.cpython-311.opt-1.pyc114850644editdlrm
headers.cpython-311.opt-2.pyc83360644editdlrm
headers.cpython-311.pyc116790644editdlrm
simple_server.cpython-311.opt-1.pyc89530644editdlrm
simple_server.cpython-311.opt-2.pyc81940644editdlrm
simple_server.cpython-311.pyc89530644editdlrm
types.cpython-311.opt-1.pyc43080644editdlrm
types.cpython-311.opt-2.pyc40280644editdlrm
types.cpython-311.pyc43080644editdlrm
util.cpython-311.opt-1.pyc78650644editdlrm
util.cpython-311.opt-2.pyc63310644editdlrm
util.cpython-311.pyc78650644editdlrm
validate.cpython-311.opt-1.pyc230760644editdlrm
validate.cpython-311.opt-2.pyc194380644editdlrm
validate.cpython-311.pyc230760644editdlrm
__init__.cpython-311.opt-1.pyc8390644editdlrm
__init__.cpython-311.opt-2.pyc1640644editdlrm
__init__.cpython-311.pyc8390644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/wsgiref/__pycache__/headers.cpython-311.pyc (11679B)
§ ³Î d‚2Gãó”—dZddlZejd¦«Zejd¦«Zejd¦«Zd d„ZGd„d ¦«ZdS) zÓManage HTTP Response Headers Much of this module is red-handedly pilfered from email.message in the stdlib, so portions are Copyright (C) 2001,2002 Python Software Foundation, and were written by Barry Warsaw. éNz[ \(\)<>@,;:\\"/\[\]\?=]z[\x00-\x1F\x7F]z[\x00-\x08\x0A-\x1F\x7F]écóÚ—|�ht|¦«dkrU|st |¦«r2| dd¦« dd¦«}|›d|›d�S|›d|›�S|S) z~Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. Nrú\z\\ú"z\"z="ú=)ÚlenÚ tspecialsÚsearchÚreplace)ÚparamÚvalueÚquotes ú6/opt/alt/python311/lib64/python3.11/wsgiref/headers.pyÚ _formatparamrs�€ð  Ð�S ™ZœZ¨!š^˜^Ø ð ,•I×$Ò$ UÑ+Ô+ð ,Ø—M’M $¨Ñ/Ô/×7Ò7¸¸UÑCÔCˆEØ %   u u uÐ-Ð -à#˜e˜e U UÐ+Ð +àˆ ócó|—eZdZdZdd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z dd „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„ZdS)ÚHeadersz,Manage a collection of HTTP response headersNcóØ—|�|ng}t|¦«turtd¦«‚||_ |D]3\}}| |d¬¦«| |d¬¦«Œ4dS)Nz+Headers must be a list of name/value tuplesT©ÚnameF)ÚtypeÚlistÚ TypeErrorÚ_headersÚ_convert_string_type)ÚselfÚheadersÚkÚvs rÚ__init__zHeaders.__init__$sŽ€Ø$Ð0�'�'°bˆÝ �‰=Œ=¥Ð $Ð $ÝÐIÑJÔJÐ J؈Œ ð 9Øð 9ð 9‘��1Ø×)Ò)¨!°$Ð)Ñ7Ô7Ð7Ø×)Ò)¨!°%Ð)Ñ8Ô8Ð8Ð8ð 9ð 9rcóø—t|¦«tur6|rtnt}| |¦«rt d¦«‚|St d t|¦«¦«¦«‚)zConvert/check value type.z)Control characters not allowed in headersz1Header names/values must be of type str (got {0})) rÚstrÚ_name_disallowed_reÚ_value_disallowed_rer Ú ValueErrorÚAssertionErrorÚformatÚrepr)rr rÚregexs rrzHeaders._convert_string_type.sw€å �‰;Œ;�#Ð Ð Ø,0ÐJÕ(Ð(Õ6JˆEØ�|Š|˜EÑ"Ô"ð NÝ Ð!LÑMÔMÐM؈LÝð%ß%+¢V­D°©K¬KÑ%8Ô%8ñ:ô:ð :rcó*—t|j¦«S)z9Return the total number of headers, including duplicates.)rr©rs rÚ__len__zHeaders.__len__8s€å�4”=Ñ!Ô!Ð!rcó˜—||=|j | |d¬¦«| |d¬¦«f¦«dS)zSet the value of a header.TrFN)rÚappendr)rrÚvals rÚ __setitem__zHeaders.__setitem__<sb€à �ˆJØ Œ ×ÒØ × &Ò & t°$Ð &Ñ 7Ô 7¸×9RÒ9RÐSVÐ]bÐ9RÑ9cÔ9cÐ dñ fô fð fð fð frc󔇗| ‰ ¦«d¬¦«Šˆfd„|jD¦«|jdd…<dS)zyDelete all occurrences of a header, if present. Does *not* raise an exception if the header is missing. TrcóP•—g|]"}|d ¦«‰k¯ |‘Œ#S)r©Úlower©Ú.0Úkvrs €rú z'Headers.__delitem__..Hs/ø€ÐPÐPÐP 2¸"¸Q¼%¿+º+¹-¼-È4Ò:OÐ:O˜BÐ:OÐ:OÐ:OrN©rr4r©rrs `rÚ __delitem__zHeaders.__delitem__BsQø€ð ×(Ò(¨¯ª©¬¸DÐ(ÑAÔAˆØPÐPÐPÐP¨¬ÐPÑPÔPˆŒ �a�a�aÑÐÐrcó,—| |¦«S)aHGet the first header value for 'name' Return None if the header is missing instead of raising an exception. Note that if the header appeared multiple times, the first exactly which occurrence gets returned is undefined. Use getall() to get all the values matching a header field name. ©Úgetr:s rÚ __getitem__zHeaders.__getitem__Js€ð�xŠx˜‰~Œ~Ðrcó0—| |¦«duS)z/Return true if the message contains the header.Nr=r:s rÚ __contains__zHeaders.__contains__Us€à�xŠx˜‰~Œ~ TÐ)Ð)rcó|‡—| ‰ ¦«d¬¦«Šˆfd„|jD¦«S)aqReturn a list of all the values for the named field. These will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If no fields exist with the given name, returns an empty list. Trcó\•—g|](}|d ¦«‰k¯ |d‘Œ)S)rrr3r5s €rr8z#Headers.get_all..cs3ø€ÐEÐEÐE˜"°°A´·²±´ÀÒ1DÐ1D��1”Ð1DÐ1DÐ1Drr9r:s `rÚget_allzHeaders.get_allZsAø€ð×(Ò(¨¯ª©¬¸DÐ(ÑAÔAˆØEÐEÐEÐE ¤ ÐEÑEÔEÐErcóª—| | ¦«d¬¦«}|jD]!\}}| ¦«|kr|cSŒ"|S)z:Get the first header value for 'name', or return 'default'Trr9)rrÚdefaultrrs rr>z Headers.getfs[€à×(Ò(¨¯ª©¬¸DÐ(ÑAÔAˆØ”=ð ð ‰CˆAˆaØ�wŠw‰yŒy˜$ŠˆØ���ðàˆrcó$—d„|jD¦«S)a*Return a list of all the header field names. These will be sorted in the order they appeared in the original header list, or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. có—g|]\}}|‘ŒS©rI©r6rrs rr8z Headers.keys..wó€Ð,Ð,Ð,‘d�a˜�Ð,Ð,Ð,r©rr+s rÚkeysz Headers.keysoó€ð-Ð,˜dœmÐ,Ñ,Ô,Ð,rcó$—d„|jD¦«S)a!Return a list of all header values. These will be sorted in the order they appeared in the original header list, or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. có—g|]\}}|‘ŒSrIrIrJs rr8z"Headers.values..�rKrrLr+s rÚvalueszHeaders.valuesyrNrcó —|jdd…S)aGet all the header fields and values. These will be sorted in the order they were in the original header list, or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. NrLr+s rÚitemsz Headers.itemsƒs€ðŒ}˜Q˜Q˜QÔÐrcó0—|jj›d|j›d�S)Nú(ú))Ú __class__Ú__name__rr+s rÚ__repr__zHeaders.__repr__�s€Øœ>Ô2Ð2Ð2°D´M°M°MÐBÐBrcóT—d d„|jD¦«ddgz¦«S)zkstr() returns the formatted headers, complete with end line, suitable for direct HTTP transmission.z có—g|]}d|z‘ŒS)z%s: %srI)r6r7s rr8z#Headers.__str__..“s€ÐBÐBÐB¨b˜H r™MÐBÐBÐBrÚ)Újoinrr+s rÚ__str__zHeaders.__str__�s0€ð�{Š{ÐBÐB°D´MÐBÑBÔBÀBÀrÀ7ÑJÑKÔKÐKrcóF—t|¦« d¦«S)Nz iso-8859-1)r"Úencoder+s rÚ __bytes__zHeaders.__bytes__•s€Ý�4‰yŒy×Ò  Ñ-Ô-Ð-rcóÄ—| |¦«}|€H|j | |d¬¦«| |d¬¦«f¦«|S|S)z£Return first matching header value for 'name', or 'value' If there is no header named 'name', add a new header with name 'name' and value 'value'.NTrF)r>rr.r)rrr Úresults rÚ setdefaultzHeaders.setdefault˜sl€ð —’˜$‘”ˆØ ˆ>Ø ŒM× Ò  $×";Ò";¸DÀtÐ";Ñ"LÔ"LØ×)Ò)¨%°eÐ)Ñ<Ô<ð">ñ ?ô ?ð ?àˆLàˆMrc óD—g}|�,| |d¬¦«}| |¦«| ¦«D]–\}}| |d¬¦«}|€*| | dd¦«¦«ŒH| |d¬¦«}| t | dd¦«|¦«¦«Œ—|j | |d¬¦«d |¦«f¦«dS)afExtended header setting. _name is the header field to add. keyword arguments can be used to set additional parameters for the header field, with underscores converted to dashes. Normally the parameter will be added as key="value" unless value is None, in which case only the key will be added. Example: h.add_header('content-disposition', 'attachment', filename='bud.gif') Note that unlike the corresponding 'email.message' method, this does *not* handle '(charset, language, value)' tuples: all values must be strings or None. NFrTÚ_ú-z; )rr.rSr rrr])rÚ_nameÚ_valueÚ_paramsÚpartsrrs rÚ add_headerzHeaders.add_header¥s€ð ˆØ Ð Ø×.Ò.¨v¸EÐ.ÑBÔBˆFØ �LŠL˜Ñ Ô Ð Ø—M’M‘O”Oð Cð C‰DˆAˆqØ×)Ò)¨!°$Ð)Ñ7Ô7ˆA؈yØ— ’ ˜QŸYšY s¨CÑ0Ô0Ñ1Ô1Ð1Ð1à×-Ò-¨a°eÐ-Ñ<Ô<�Ø— ’ �\¨!¯)ª)°C¸Ñ*=Ô*=¸qÑAÔAÑBÔBÐBÐBØ Œ ×Ò˜d×7Ò7¸ÀDÐ7ÑIÔIÈ4Ï9Ê9ÐUZÑK[ÔK[Ð\Ñ]Ô]Ð]Ð]Ð]r)N)rXÚ __module__Ú __qualname__Ú__doc__r rr,r0r;r?rArDr>rMrQrSrYr^rardrlrIrrrr!s7€€€€€Ø6Ð6ð9ð9ð9ð9ð:ð:ð:ð"ð"ð"ðfðfðfð QðQðQð ð ð ð*ð*ð*ð Fð Fð Fððððð-ð-ð-ð-ð-ð-ð ð ð ðCðCðCðLðLðLð .ð.ð.ð ð ð ð^ð^ð^ð^ð^rr)Nr)roÚreÚcompiler r#r$rrrIrrúrrs®ðððð € € € Ø ˆBŒJÐ2Ñ 3Ô 3€ ð!�b”jÐ!3Ñ4Ô4ÐØ!�r”zÐ"=Ñ>Ô>Ðð ð ð ð ð_^ð_^ð_^ð_^ð_^ñ_^ô_^ð_^ð_^ð_^r