Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.15.20.178
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : handlers.cpython-313.pyc
�

1}g�T����SrSSKJrJrJr SSKJr SSKrSSKrSSK	r	/SQr
/SQr/SQrS	r
1S
kRrSrSr"S
S5r"SS\5r"SS\5r"SS\5r"SS\5rg)z/Base classes for server/gateway implementations�)�FileWrapper�guess_scheme�
is_hop_by_hop)�Headers�N)�BaseHandler�
SimpleHandler�BaseCGIHandler�
CGIHandler�
IISCGIHandler�read_environ)�Mon�Tue�Wed�Thu�Fri�Sat�Sun)
N�Jan�Feb�Mar�Apr�May�Jun�Jul�Aug�Sep�Oct�Nov�Decc	�j�[R"U5u	pp4pVpxn	S[UU[UXXV4-$)Nz#%s, %02d %3s %4d %02d:%02d:%02d GMT)�time�gmtime�_weekdayname�
_monthname)
�	timestamp�year�month�day�hh�mm�ss�wd�y�zs
          �7/opt/alt/python313/lib64/python3.13/wsgiref/handlers.py�format_date_timer1sB��-1�[�[��-C�*�D��"�"��0��R��#�z�%�0�$�B�4���>
�HTTPS�	AUTH_TYPE�	PATH_INFO�REMOTE_USER�SCRIPT_NAME�CONTENT_TYPE�QUERY_STRING�REMOTE_IDENT�CONTENT_LENGTH�REQUEST_METHODc���[U5=(dV URS5=(d> URS5=(d& URS5=(a [USS5$)N�HTTP_�SSL_�	REDIRECT_�	)�_is_request�
startswith�_needs_transcode)�ks r0rDrDsT���q�>�C�Q�\�\�'�2�C�a�l�l�6�6J�C�
�L�L��%�A�*:�1�Q�R�5�*A�Cr2c��[R"5nSnSRSU5 0n[R
R
5GH*up4[U5(Ga[RS:Xa�[R
RSS5R5nURS5(a!URS5RS5nO�URS	5(aOURS
5(a'SU;a!URS5RS5nOBURUS5RS5nO URX5RS5nXBU'GM- U$![a SnGN`f=f)z'Read environment, fixing HTTP variables�surrogateescape�zutf-8�replace�win32�SERVER_SOFTWAREzmicrosoft-iis/�
iso-8859-1zapache/zsimplehttp/zpython/3)
�sys�getfilesystemencoding�encode�LookupError�os�environ�itemsrD�platform�get�lowerrC�decode)�enc�escrRrE�v�softwares      r0r
r
"sW��

�
#�
#�
%�C�
�C��
�	�	�'�3���G�
�
�
� � �"����A����|�|�w�&��:�:�>�>�*;�R�@�F�F�H���&�&�'7�8�8�����)�0�0��>�A��(�(��3�3���'�'�
�6�6�"�h�.�����)�0�0��>�A�����i�0�7�7��E�A�
�H�H�S�&�-�-�l�;����
�W#�X�N��g�����s�E<�<F�Fc�
�\rSrSrSrSrSrSrSrSr	Sr
Sr\"5r
\r\rSrSrS	/rS
rS=rrSrSrSrSrS
rSrSrSrSr S&Sjr!Sr"Sr#Sr$Sr%Sr&Sr'Sr(Sr)Sr*Sr+Sr,Sr-Sr.S r/S!r0S"r1S#r2S$r3S%r4g)'r�^z+Manage the invocation of a WSGI application)rrTFz1.0Nz500 Internal Server Error)zContent-Typez
text/plains;A server error occurred.  Please contact the administrator.rc��UR5 U"URUR5UlUR	5 g![
[[4a g UR5 g! UR5 e=f=f)zInvoke the applicationN)
�
setup_environrR�start_response�result�finish_response�ConnectionAbortedError�BrokenPipeError�ConnectionResetError�handle_error�close)�self�applications  r0�run�BaseHandler.run�sv��	���� �%�d�l�l�D�4G�4G�H�D�K�� � �"��&��9M�N�	�
�	�
��!�!�#��
��
�
���s$�AA�B�B�A0�0B�Bc��URR5=olUR5 UR	5US'UR5US'URUS'URUS'UR5US'URUS'URUS'URbURUS	'UR(a/UR(aURS
UR5 ggg)z&Set up the environment for one requestz
wsgi.inputzwsgi.errorszwsgi.versionz
wsgi.run_oncezwsgi.url_schemezwsgi.multithreadzwsgi.multiprocessNzwsgi.file_wrapperrK)�
os_environ�copyrR�add_cgi_vars�	get_stdin�
get_stderr�wsgi_version�
wsgi_run_once�
get_scheme�wsgi_multithread�wsgi_multiprocess�wsgi_file_wrapper�
origin_server�server_software�
setdefault)rh�envs  r0r_�BaseHandler.setup_environ�s���"�_�_�1�1�3�3��l�����#'�>�>�#3��L��#'�?�?�#4��M��#'�#4�#4��N��#'�#5�#5��O��#'�?�?�#4����#'�#8�#8����#'�#9�#9��� ��!�!�-�'+�'=�'=�C�#�$����$�"6�"6��N�N�,�T�-A�-A�B�#7�r2c�X�UR5(aUR5(d4URHnURU5 M UR	5 UR5 g! [
URS5(aURR5 e=f)aSend any iterable data, then close self and the iterable

Subclasses intended for use in asynchronous servers will
want to redefine this method, such that it sets up callbacks
in the event loop to iterate over the data, and to call
'self.close()' once the response is finished.
rgN)�result_is_file�sendfilera�write�finish_contentrg�hasattr�rh�datas  r0rb�BaseHandler.finish_response�s~��	��&�&�(�(��
�
��� �K�K�D��J�J�t�$�(��#�#�%�
�J�J�L��	��t�{�{�G�,�,����!�!�#��s�AA1�18B)c�,�[UR5$)z Return the URL scheme being used)rrR�rhs r0rt�BaseHandler.get_scheme�s���D�L�L�)�)r2c��[UR5nUS:Xa#[UR5URS'gg![
[[4a gf=f)z@Compute Content-Length or switch to chunked encoding if possibler�Content-LengthN)�lenra�str�
bytes_sent�headers�	TypeError�AttributeError�NotImplementedError)rh�blockss  r0�set_content_length�BaseHandler.set_content_length�sZ��	�����%�F��q�y�14�T�_�_�1E����-�.�����.�)<�=�	��	�s�A�A�Ac�F�SUR;aUR5 gg)zaMake any necessary header changes or defaults

Subclasses can extend this to add other defaults.
r�N)r�r�r�s r0�cleanup_headers�BaseHandler.cleanup_headers�s!��
�4�<�<�/��#�#�%�0r2c��U(aUR(aeSnOURb[S5eXlUR	U5UlURUS5nUR
U5 UHGupEURUS5nURUS5n[U5(dM;SUSUS35e UR$!Snf=f)	z4'start_response()' callable as specified by PEP 3333NzHeaders already set!�StatuszHeader namezHeader valuezHop-by-hop header, 'z: z', not allowed)	�headers_sentr��AssertionError�status�
headers_class�_convert_string_type�_validate_statusrr�)rhr�r��exc_info�name�vals      r0r`�BaseHandler.start_response�s����
 ��$�$��%� ��
�\�\�
%� �!7�8�8����)�)�'�2����*�*�6�8�<�����f�%��$�	���0�0��}�E���/�/��^�D��(��.�.�J�-�d�V�2�c�U�.�I�J�.�%��z�z���! ��s�C�Cc��[U5S:a[S5eUSSR5(d[S5eUSS:wa[S5eg)N�z$Status must be at least 4 characters�z(Status message must begin w/3-digit code� z+Status message must have a space after code)r�r��isdigit)rhr�s  r0r��BaseHandler._validate_status�sW���v�;��?� �!G�H�H��b�q�z�!�!�#�#� �!K�L�L��!�9��� �!N�O�O�r2c�r�[U5[LaU$[SRU[	U555e)zConvert/check value type.z!{0} must be of type str (got {1}))�typer�r��format�repr)rh�value�titles   r0r�� BaseHandler._convert_string_types4����;�#���L��/�6�6�u�d�5�k�J�
�	
r2c�f�UR(a�UR5(a�URSUR<SUR<S3RS55 SUR;a?URS[[R"55-RS55 UR(a?SUR;a.URSUR-RS55 g
g
g
g
URS	UR-RS55 g
)z6Transmit version/status/date/server, via self._write()zHTTP/r�z
rL�Datez
Date: %s
�ServerzServer: %s
zStatus: %s
N)
rx�client_is_modern�_write�http_versionr�rOr�r1r"ryr�s r0�
send_preamble�BaseHandler.send_preambles�������$�$�&�&�����1B�1B�4�;�;�O�W�W�Xd�e�f�����-��K�K�'�*:�4�9�9�;�*G�G�O�O�P\�]���'�'�H�D�L�L�,H��K�K�!1�D�4H�4H�!H� P� P�Q]� ^�_�-I�'�
'�
�K�K�)�D�K�K�7�?�?��M�Nr2c�P�[U5[LdS5eUR(d[S5eUR(d![U5UlUR5 OU=R[U5-
slURU5 UR5 g)z+'write()' callable as specified by PEP 3333z)write() argument must be a bytes instancezwrite() before start_response()N)
r��bytesr�r�r�r�r��send_headersr��_flushr�s  r0r��BaseHandler.writes~���D�z�U�"�	8�7�	8�"��{�{� �!B�C�C��"�"�!�$�i�D�O������O�O�s�4�y�(�O�	
���D�����
r2c��g)a�Platform-specific file transmission

Override this method in subclasses to support platform-specific
file transmission.  It is only called if the application's
return iterable ('self.result') is an instance of
'self.wsgi_file_wrapper'.

This method should return a true value if it was able to actually
transmit the wrapped file-like object using a platform-specific
approach.  It should return a false value if normal iteration
should be used instead.  An exception can be raised to indicate
that transmission was attempted, but failed.

NOTE: this method should call 'self.send_headers()' if
'self.headers_sent' is false and it is going to attempt direct
transmission of the file.
F�r�s r0r�BaseHandler.sendfile.s��$r2c��UR(d-URRSS5 UR5 gg)z.Ensure headers and content have both been sentr��0N)r�r�rzr�r�s r0r��BaseHandler.finish_contentCs1��� � �
�L�L�#�#�$4�c�:�����r2c�"�[URS5(aURR5 S=Ul=Ul=UlUlSUlSUlg!S=Ul=Ul=UlUlSUlSUlf=f)ztClose the iterable (if needed) and reset all instance vars

Subclasses may want to also drop the client connection.
rgNrF)r�rargr�r�rRr�r�r�s r0rg�BaseHandler.closeMs���
	;��t�{�{�7�+�+����!�!�#�FJ�J�D�K�J�$�,�J���t�|��D�O�U��!2��GK�J�D�K�J�$�,�J���t�|��D�O�U��!2�s�5A"�",Bc���UR5 SUlUR(aUR5(a5UR	5 UR[
UR55 gg)z1Transmit headers to the client, via self._write()TN)r�r�rxr�r�r�r�r�r�s r0r��BaseHandler.send_headersZsS������ ����!�!�T�%:�%:�%<�%<���� ��K�K��d�l�l�+�,�&=r2c�\�URnUSL=(a [URU5$)z@True if 'self.result' is an instance of 'self.wsgi_file_wrapper'N)rw�
isinstancera)rh�wrappers  r0r~�BaseHandler.result_is_filecs(���(�(���d�"�F�z�$�+�+�g�'F�Fr2c�B�URSR5S:g$)z,True if client can accept status and headers�SERVER_PROTOCOLzHTTP/0.9)rR�upperr�s r0r��BaseHandler.client_is_modernis ���|�|�-�.�4�4�6�*�D�Dr2c��SSKJn UR5nU"USUSUSURU5 UR	5 Sng!Snf=f)zqLog the 'exc_info' tuple in the server log

Subclasses may override to retarget the output or change its format.
r)�print_exceptionr�N)�	tracebackr�rq�traceback_limit�flush)rhr�r��stderrs    r0�
log_exception�BaseHandler.log_exceptionnsR��
		�1��_�_�&�F�����X�a�[�(�1�+��$�$�f�
�
�L�L�N��H��t�H�s�AA
�
Ac���UR[R"55 UR(d<UR	UR
UR5UlUR5 gg)z>Log current error, and send error output to client if possibleN)	r�rMr�r��error_outputrRr`rarbr�s r0rf�BaseHandler.handle_error~sN�����3�<�<�>�*�� � ��+�+�D�L�L�$�:M�:M�N�D�K�� � �"�!r2c��U"URURSS[R"55 UR/$)aWSGI mini-app to create error output

By default, this just uses the 'error_status', 'error_headers',
and 'error_body' attributes to generate an output page.  It can
be overridden in a subclass to dynamically generate diagnostics,
choose an appropriate message for the user's preferred language, etc.

Note, however, that it's not recommended from a security perspective to
spit out diagnostics to any old user; ideally, you should have to do
something special to enable diagnostic output, which is why we don't
include any here!
N)�error_status�
error_headersrMr��
error_body)rhrRr`s   r0r��BaseHandler.error_output�s4��	�t�(�(��);�);�A�)>�s�|�|�~�N���� � r2c��[e)z�Override in subclass to buffer data for send to client

It's okay if this method actually transmits the data; BaseHandler
just separates write and flush operations for greater efficiency
when the underlying system actually has such a distinction.
�r�r�s  r0r��BaseHandler._write�s
��"�!r2c��[e)z�Override in subclass to force sending of recent '_write()' calls

It's okay if this method is a no-op (i.e., if '_write()' actually
sends the data.
r�r�s r0r��BaseHandler._flush�s
��"�!r2c��[e)z4Override in subclass to return suitable 'wsgi.input'r�r�s r0rp�BaseHandler.get_stdin����!�!r2c��[e)z5Override in subclass to return suitable 'wsgi.errors'r�r�s r0rq�BaseHandler.get_stderr�r�r2c��[e)z>Override in subclass to insert CGI variables in 'self.environ'r�r�s r0ro�BaseHandler.add_cgi_vars�r�r2)r�rRr�r�rar��N)5�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrrurvrsrxr�ryr
rmrrwrr�r�r�r�r�r�rar�r�r�rjr_rbrtr�r�r`r�r�r�r�rr�rgr�r~r�r�rfr�r�r�rprqro�__static_attributes__r�r2r0rr^s���5��L������M��M��L��O�
��J�$���M��O�.�L�2�3�M�O�J���F�V��L��G��J��0C�*�4*�
	�&��4P�
�O��*�*�
;�-�G�E�
� #�!�&"�"�"�"�"r2rc�B�\rSrSrSrSSjrSrSrSrSr	Sr
S	rg
)r	i�aUHandler that's just initialized with streams, environment, etc.

This handler subclass is intended for synchronous HTTP/1.0 origin servers,
and handles sending the entire response output, given the correct inputs.

Usage::

    handler = SimpleHandler(
        inp,out,err,env, multithread=False, multiprocess=True
    )
    handler.run(app)c�L�XlX lX0lX@lXPlX`lgr�)�stdin�stdoutr��base_envrurv)rhr�r�r�rR�multithread�multiprocesss       r0�__init__�SimpleHandler.__init__�s$���
������
� +��!-�r2c��UR$r�)r�r�s r0rp�SimpleHandler.get_stdin�s���z�z�r2c��UR$r�)r�r�s r0rq�SimpleHandler.get_stderr�s���{�{�r2c�N�URRUR5 gr�)rR�updater�r�s r0ro�SimpleHandler.add_cgi_vars�s�������D�M�M�*r2c���URRU5nUbU[U5:XagSSKJn U"S[
5 XS=n(a)URRU5nXS=n(aM(gg)Nr)�warnz9SimpleHandler.stdout.write() should not do partial writes)r�r�r��warningsr�DeprecationWarning)rhr�rars    r0r��SimpleHandler._write�sq�����"�"�4�(���>�V�s�4�y�0��!��
H��	 ��7�m�#�d�#��[�[�&�&�t�,�F��7�m�#�d�#�#r2c�n�URR5 URRUlgr�)r�r�r�r�s r0r��SimpleHandler._flush�s#���������k�k�'�'��r2)r�r�r�r�r�rvruN)TF)r�r�r�r�r�r�rprqror�r�r�r�r2r0r	r	�s*��
�(-�.���+�-�(r2r	c��\rSrSrSrSrSrg)r
i�a�CGI-like systems using input/output/error streams and environ mapping

Usage::

    handler = BaseCGIHandler(inp,out,err,env)
    handler.run(app)

This handler class is useful for gateway protocols like ReadyExec and
FastCGI, that have usable input/output/error streams and an environment
mapping.  It's also the base class for CGIHandler, which just uses
sys.stdin, os.environ, and so on.

The constructor also takes keyword arguments 'multithread' and
'multiprocess' (defaulting to 'True' and 'False' respectively) to control
the configuration sent to the application.  It sets 'origin_server' to
False (to enable CGI-like output), and assumes that 'wsgi.run_once' is
False.
Fr�N)r�r�r�r�r�rxr�r�r2r0r
r
�s���&�Mr2r
c�&�\rSrSrSrSr0rSrSrg)ri�a�CGI-based invocation via sys.stdin/stdout/stderr and os.environ

Usage::

    CGIHandler().run(app)

The difference between this class and BaseCGIHandler is that it always
uses 'wsgi.run_once' of 'True', 'wsgi.multithread' of 'False', and
'wsgi.multiprocess' of 'True'.  It does not take any initialization
parameters, but always uses 'sys.stdin', 'os.environ', and friends.

If you need to override any of these parameters, use BaseCGIHandler
instead.
Tc
���[RU[RR[R
R[R[5SSS9 g)NFT�r�r�)r
r�rMr��bufferr�r�r
r�s r0r��CGIHandler.__init__s?������#�)�)�"�"�C�J�J�$5�$5�s�z�z��N��D�	 �	
r2r�N�	r�r�r�r�r�rsrmr�r�r�r2r0rr�s��
��M��J�
r2rc�&�\rSrSrSrSr0rSrSrg)riz�CGI-based invocation with workaround for IIS path bug

This handler should be used in preference to CGIHandler when deploying on
Microsoft IIS without having set the config allowPathInfo option (IIS>=7)
or metabase allowPathInfoForScriptMappings (IIS<7).
Tc
�h�[5nURSS5nURSS5nUS-RUS-5(aU[U5SUS'[RU[RR[RR[RUSSS9 g)Nr5rHr7�/FTr)r
rUrCr�r
r�rMr�rr�r�)rhrR�path�scripts    r0r��IISCGIHandler.__init__4s�������{�{�;��+�����]�B�/����H� � ����,�,�#'��F���#5�G�K� �����#�)�)�"�"�C�J�J�$5�$5�s�z�z���T�	 �	
r2r�Nrr�r2r0rrs����M��J� 	
r2r)r��utilrrrr�rrMrQr"�__all__r$r%r1�__contains__rBrDr
rr	r
rrr�r2r0�<module>rs���5�:�:������A��8�
����,��
C�9�xV"�V"�r
,(�K�,(�^�]��0
��
�<!
�N�!
r2
© 2025 GrazzMean-Shell