Files
aitsc/.venv/Lib/site-packages/engineio/__pycache__/middleware.cpython-312.pyc

39 lines
4.5 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
W0<57>g<EFBFBD><00><00>B<00>ddlZddlmZGd<03>d<04>ZGd<05>de<03>Zy)<07>N)<01>get_static_filec<00>(<00>eZdZdZ dd<03>Zd<04>Zd<05>Zy)<07>WSGIAppa<70>WSGI application middleware for Engine.IO.
This middleware dispatches traffic to an Engine.IO application. It can
also serve a list of static files to the client, or forward unrelated
HTTP traffic to another WSGI application.
:param engineio_app: The Engine.IO server. Must be an instance of the
``engineio.Server`` class.
:param wsgi_app: The WSGI app that receives all other traffic.
:param static_files: A dictionary with static file mapping rules. See the
documentation for details on this argument.
:param engineio_path: The endpoint where the Engine.IO application should
be installed. The default value is appropriate for
most cases.
Example usage::
import engineio
import eventlet
eio = engineio.Server()
app = engineio.WSGIApp(eio, static_files={
'/': {'content_type': 'text/html', 'filename': 'index.html'},
'/index.html': {'content_type': 'text/html',
'filename': 'index.html'},
})
eventlet.wsgi.server(eventlet.listen(('', 8000)), app)
Nc<00><00>||_||_||_|jjd<01>sd|jz|_|jj d<01>s|xjdz c_|xsi|_y)N<>/)<06> engineio_app<70>wsgi_app<70> engineio_path<74>
startswith<EFBFBD>endswith<74> static_files)<05>selfrr r r
s <20>=D:\wxxcx\tsccc\.venv\Lib\site-packages\engineio/middleware.py<70>__init__zWSGIApp.__init__"sr<00><00>(<28><04><19> <20><04> <0A>*<2A><04><1A><13>!<21>!<21>,<2C>,<2C>S<EFBFBD>1<>!$<24>t<EFBFBD>'9<>'9<>!9<>D<EFBFBD> <1E><13>!<21>!<21>*<2A>*<2A>3<EFBFBD>/<2F> <10> <1E> <1E>#<23> %<25> <1E>(<28>.<2E>B<EFBFBD><04><19>c<00>.<00>d|vrGd<02>d<03>}||d<00>|d<|d}|<04>7|j|j<00>r|jj||<02>S|jrt ||j<00>nd}|r[t jj|d<00>r9|dd|d fg<01>t|dd
<EFBFBD>5}|j<00>gcddd<00>S|j<00>|j||<02>S|j|<02>S#1swY<00>xYw) Nzgunicorn.socketc<00><00>eZdZd<01>Zd<02>Zy)<04>WSGIApp.__call__.<locals>.Inputc<00><00>||_y<00>N<><01>socket)rrs rrz(WSGIApp.__call__.<locals>.Input.__init__6s <00><00>"(<28>D<EFBFBD>Krc<00><00>|jSrr)rs r<00>
get_socketz*WSGIApp.__call__.<locals>.Input.get_socket9s <00><00><1F>;<3B>;<3B>&rN)<05>__name__<5F>
__module__<EFBFBD> __qualname__rr<00>rr<00>Inputr5s <00><00>)<29>'rrzeventlet.input<75> PATH_INFO<46>filenamez200 OK<4F> Content-Type<70> content_type<70>rb) r r
r<00>handle_requestr r<00>os<6F>path<74>exists<74>open<65>readr <00> not_found)r<00>environ<6F>start_responserr'<00> static_file<6C>fs r<00>__call__zWSGIApp.__call__-s<00><00> <1C><07> '<27> '<27> '<27>).<2E>g<EFBFBD>6G<36>.H<>(I<>G<EFBFBD>$<24> %<25><16>{<7B>#<23><04> <0F> <1B><04><0F><0F><04>0B<30>0B<30> C<><17>$<24>$<24>3<>3<>G<EFBFBD>^<5E>L<> L<><18>$<24>$<24>*<2A>$<24><04>0A<30>0A<30>B<>*.<2E> <18><1A>r<EFBFBD>w<EFBFBD>w<EFBFBD>~<7E>~<7E>k<EFBFBD>*<2A>.E<>F<><1E><1C>$<24>k<EFBFBD>.<2E>&A<>B<>C<>E<01><1A>+<2B>j<EFBFBD>1<>4<EFBFBD>8<>A<EFBFBD><1D>F<EFBFBD>F<EFBFBD>H<EFBFBD>:<3A>9<>8<><15><1D><1D>*<2A><1B>}<7D>}<7D>W<EFBFBD>n<EFBFBD>=<3D>=<3D><13>~<7E>~<7E>n<EFBFBD>-<2D>-<2D> 9<>8<>s <00>D <03> Dc<00><00>|ddg<01>dgS)Nz 404 Not Found)r"z
text/plains Not Foundr)rr-s rr+zWSGIApp.not_foundMs<00><00><16><EFBFBD>)G<>(H<>I<><1C>~<7E>r)NN<4E> engine.io)rrr<00>__doc__rr0r+rrrrrs!<00><00><08>8BF<01>*<2A> /<2F>.<2E>@rrc<00>(<00><00>eZdZdZ d<03>fd<02> Z<04>xZS)<04>
MiddlewarezAThis class has been renamed to ``WSGIApp`` and is now deprecated.c<00>*<00><01>t<00>|<00>|||<03><01>y)N)r
)<02>superr)rrr r
<00> __class__s <20>rrzMiddleware.__init__Ts<00><><00> <0A><07><18><1C>x<EFBFBD>}<7D><18>Mr)Nr2)rrrr3r<00> __classcell__)r8s@rr5r5Rs<00><><00>K<>.2<EFBFBD>*<2A>N<01>Nrr5)r&<00>engineio.static_filesrrr5rrr<00><module>r;s&<00><01> <09>1<>J<1E>J<1E>ZN<01><17>Nr