/opt/imh-python/lib/python3.9/wsgiref/__pycache__
Edit: /opt/imh-python/lib/python3.9/wsgiref/__pycache__/headers.cpython-39.pyc (7743B)
a
chn @ s2 d Z ddlZedZd ddZG dd dZdS )
zManage 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[ \(\)<>@,;:\\"/\[\]\?=] c C sX |durPt |dkrP|s"t|rB|dddd}d| |f S d| |f S n| S dS ) 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%s="%s"z%s=%s)len tspecialssearchreplace)Zparamvaluequote r 0/opt/imh-python/lib/python3.9/wsgiref/headers.py_formatparam
s r
c @ s e Zd ZdZd%ddZdd Zdd Zd d
Zdd Zd
d Z dd Z
dd Zd&ddZdd Z
dd Zdd Zdd Zdd Zdd Zd!d" Zd#d$ ZdS )'Headersz,Manage a collection of HTTP response headersNc C sP |d ur|ng }t |tur$td|| _|D ]\}}| | | | q.d S )Nz+Headers must be a list of name/value tuples)typelist TypeError_headers_convert_string_type)selfZheaderskvr r r __init__ s
zHeaders.__init__c C s&