https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/werkzeug/middleware/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/werkzeug/middleware/dispatcher.pyc
�
./�_c@s dZdefd��YZdS(sY
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
tDispatcherMiddlewarecBs#eZdZdd�Zd�ZRS(sJCombine 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.
    cCs||_|pi|_dS(N(tapptmounts(tselfRR((sB/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/middleware/dispatcher.pyt__init__-s	cCs�|jdd�}d}xpd|krr||jkrG|j|}Pn|jdd�\}}d||f}qW|jj||j�}|jdd�}|||d<||d<|||�S(Nt	PATH_INFOtt/is/%s%stSCRIPT_NAME(tgetRtrsplitR(Rtenvirontstart_responsetscriptt	path_infoRt	last_itemtoriginal_script_name((sB/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/middleware/dispatcher.pyt__call__1s

N(t__name__t
__module__t__doc__tNoneRR(((sB/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/middleware/dispatcher.pyR#sN(RtobjectR(((sB/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/middleware/dispatcher.pyt<module> s

https://t.me/AnonymousX5 - 2025