| Server IP : 74.91.139.10 / Your IP : 10.45.147.122 Web Server : Apache/2.4.67 (Unix) System : Linux prod-iad-shwpweb1001d 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : FAsyXTyKGY ( 3004) PHP Version : 8.2.30 Disable Function : passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/libexec/oracle-cloud-agent/plugins/osms/wsgiref/ |
Upload File : |
a
���dn � @ s2 d Z ddlZe�d�Zd dd�ZG dd� 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[ \(\)<>@,;:\\"/\[\]\?=]� c C sX |durPt |�dkrP|s"t�|�rB|�dd��dd�}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� tspecials�search�replace)�param�value�quote� r �'/usr/lib64/python3.9/wsgiref/headers.py�_formatparam
s r c @ s� e Zd ZdZd%dd�Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zd&dd�Zdd� 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)�type�list� TypeError�_headers�_convert_string_type)�self�headers�k�vr r r
�__init__ s
zHeaders.__init__c C s&