+
    Dik(                       ^ RI Ht ^ RIt^ RIHtHtHtHt ^ RIH	t	H
t
Ht ^ RIHtHt ^ RIHtHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHtHt ^ RIH t H!t!H"t"H#t#H$t$H%t% ^ RI&H't' ]! RRR7      t(]
! R4      t) ! R R4      t*R# )    )annotationsN)	AwaitableCallableMappingSequence)Any	ParamSpecTypeVar)StateURLPath)
Middleware_MiddlewareFactory)BaseHTTPMiddleware)ServerErrorMiddleware)ExceptionMiddleware)Request)Response)	BaseRouteRouter)ASGIAppExceptionHandlerLifespanReceiveScopeSend)	WebSocketAppType	Starlette)boundPc                     ] tR t^tRtR&R R lltR R lt]R R l4       tR	 R
 lt	R R lt
R R ltR'R R lltR'R R lltR R ltR R ltR R ltR(R R lltR'R R lltR R ltR(R R  lltR'R! R" lltR# R$ ltR%tR# ))r   z!Creates an Starlette application.Nc               <    V ^8  d   QhRRRRRRRRR	R
RRRRRRRR/	# )   selfr   debugboolrouteszSequence[BaseRoute] | None
middlewarezSequence[Middleware] | Noneexception_handlersz%Mapping[Any, ExceptionHandler] | None
on_startupz"Sequence[Callable[[], Any]] | Noneon_shutdownlifespanzLifespan[AppType] | NonereturnNone )formats   "t/Users/tonyclaw/.openclaw/workspace/services/omi-webhook/venv/lib/python3.14/site-packages/starlette/applications.py__annotate__Starlette.__annotate__   sc     /5 /5/5/5 +/5 0	/5
 B/5 7/5 8/5 +/5 
/5    c                    Ve   Vf   Ve   Q R4       hWn         \        4       V n        \        W%WgR7      V n        Vf   / M
\        V4      V n        Vf   . M
\        V4      V n        RV n	        R# )a8  Initializes the application.

Parameters:
    debug: Boolean indicating if debug tracebacks should be returned on errors.
    routes: A list of routes to serve incoming HTTP and WebSocket requests.
    middleware: A list of middleware to run for every request. A starlette
        application will always automatically include two middleware classes.
        `ServerErrorMiddleware` is added as the very outermost middleware, to handle
        any uncaught errors occurring anywhere in the entire stack.
        `ExceptionMiddleware` is added as the very innermost middleware, to deal
        with handled exception cases occurring in the routing or endpoints.
    exception_handlers: A mapping of either integer status codes,
        or exception class types onto callables which handle the exceptions.
        Exception handler callables should be of the form
        `handler(request, exc) -> response` and may be either standard functions, or
        async functions.
    on_startup: A list of callables to run on application startup.
        Startup handler callables do not take any arguments, and may be either
        standard functions, or async functions.
    on_shutdown: A list of callables to run on application shutdown.
        Shutdown handler callables do not take any arguments, and may be either
        standard functions, or async functions.
    lifespan: A lifespan context function, which can be used to perform
        startup and shutdown tasks. This is a newer style that replaces the
        `on_startup` and `on_shutdown` handlers. Use one or the other, not both.
Nz>Use either 'lifespan' or 'on_startup'/'on_shutdown', not both.)r*   r+   r,   )
r%   r   stater   routerdictr)   listuser_middlewaremiddleware_stack)r$   r%   r'   r(   r)   r*   r+   r,   s   &&&&&&&&r1   __init__Starlette.__init__   st    L J$6;;N 	
L	
O 
W
Vg(:(B"M_H`%/%7rT*=M04r4   c                   V ^8  d   QhRR/# )r#   r-   r   r/   )r0   s   "r1   r2   r3   J   s       r4   c                	d   V P                   pR p/ pV P                  P                  4        F  w  rEVR\        39   d   TpK  WSV&   K  	  \	        \
        W!R7      .V P                  ,           \	        \        W1R7      .,           pV P                  p\        V4       F  w  rp
V! V.V	O5/ V
B pK  	  V# )Ni  )handlerr%   )handlersr%   )
r%   r)   items	Exceptionr   r   r:   r   r7   reversed)r$   r%   error_handlerr)   keyvaluer(   appclsargskwargss   &          r1   build_middleware_stack Starlette.build_middleware_stackJ   s    

:<11779JCsI&& %*/3'	 : -}RS""#-8JXYZ 	 kk!)*!5Cvc+D+F+C "6
r4   c                   V ^8  d   QhRR/# )r#   r-   zlist[BaseRoute]r/   )r0   s   "r1   r2   r3   a   s     " " "r4   c                	.    V P                   P                  # N)r7   r'   )r$   s   &r1   r'   Starlette.routes`   s    {{!!!r4   c               $    V ^8  d   QhRRRRRR/# )r#   namestrpath_paramsr   r-   r   r/   )r0   s   "r1   r2   r3   d   s!     = = = = =r4   c               	<    V P                   P                  ! V3/ VB # rP   )r7   url_path_for)r$   rS   rU   s   "",r1   rW   Starlette.url_path_ford   s    {{''<<<r4   c               (    V ^8  d   QhRRRRRRRR/# )	r#   scoper   receiver   sendr   r-   r.   r/   )r0   s   "r1   r2   r3   g   s(     : :E :G :4 :D :r4   c                	   "   WR &   V P                   f   V P                  4       V n         V P                  WV4      G Rj  xL
  R#  L5i)rH   N)r;   rL   )r$   rZ   r[   r\   s   &&&&r1   __call__Starlette.__call__g   s?     e  ($($?$?$AD!##ED999s   =AA Ac                    V ^8  d   QhRRRR/# )r#   
event_typerT   r-   r   r/   )r0   s   "r1   r2   r3   m   s     0 03 08 0r4   c                	8    V P                   P                  V4      # rP   )r7   on_event)r$   ra   s   &&r1   rc   Starlette.on_eventm   s    {{##J//r4   c               (    V ^8  d   QhRRRRRRRR/# )	r#   pathrT   rH   r   rS   
str | Noner-   r.   r/   )r0   s   "r1   r2   r3   p   s(     4 4# 4G 4: 4 4r4   c                	@    V P                   P                  WVR 7       R# )rH   rS   N)r7   mount)r$   rf   rH   rS   s   &&&&r1   rj   Starlette.mountp   s    $d3r4   c               (    V ^8  d   QhRRRRRRRR/# )	r#   hostrT   rH   r   rS   rg   r-   r.   r/   )r0   s   "r1   r2   r3   s   s(     3 3 37 3* 3 3r4   c                	@    V P                   P                  WVR 7       R# ri   )r7   rm   )r$   rm   rH   rS   s   &&&&r1   rm   Starlette.hosts   s    T2r4   c               (    V ^8  d   QhRRRRRRRR/# )	r#   middleware_classz_MiddlewareFactory[P]rJ   zP.argsrK   zP.kwargsr-   r.   r/   )r0   s   "r1   r2   r3   v   s8     V V/V V 	V
 
Vr4   c                	    V P                   e   \        R4      hV P                  P                  ^ \	        V.VO5/ VB 4       R # )Nz6Cannot add middleware after an application has started)r;   RuntimeErrorr:   insertr   )r$   rq   rJ   rK   s   &&*,r1   add_middlewareStarlette.add_middlewarev   sB       ,WXX##Az2B'TT'TV'TUr4   c               $    V ^8  d   QhRRRRRR/# )r#   exc_class_or_status_codeint | type[Exception]r@   r   r-   r.   r/   )r0   s   "r1   r2   r3      s-     D D"7D "D 
	Dr4   c                	"    W P                   V&   R # rP   )r)   )r$   rx   r@   s   &&&r1   add_exception_handlerStarlette.add_exception_handler   s    
 =D 89r4   c               $    V ^8  d   QhRRRRRR/# )r#   ra   rT   funcr   r-   r.   r/   )r0   s   "r1   r2   r3      s(     8 88 8 
	8r4   c                	<    V P                   P                  W4       R # rP   )r7   add_event_handler)r$   ra   r~   s   &&&r1   r   Starlette.add_event_handler   s    
 	%%j7r4   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r#   rf   rT   routez3Callable[[Request], Awaitable[Response] | Response]methodslist[str] | NonerS   rg   include_in_schemar&   r-   r.   r/   )r0   s   "r1   r2   r3      sO     l ll Cl "	l
 l  l 
lr4   c                	B    V P                   P                  WW4VR 7       R# )r   rS   r   Nr7   	add_route)r$   rf   r   r   rS   r   s   &&&&&&r1   r   Starlette.add_route   s     	d7Yjkr4   c               (    V ^8  d   QhRRRRRRRR/# )	r#   rf   rT   r   z&Callable[[WebSocket], Awaitable[None]]rS   rg   r-   r.   r/   )r0   s   "r1   r2   r3      s8     @ @@ 6@ 	@
 
@r4   c                	@    V P                   P                  WVR 7       R# )rS   Nr7   add_websocket_route)r$   rf   r   rS   s   &&&&r1   r   Starlette.add_websocket_route   s     	''$'?r4   c                    V ^8  d   QhRRRR/# )r#   rx   ry   r-   r   r/   )r0   s   "r1   r2   r3      s      :O T\ r4   c                	T   a a \         P                  ! R \        4       R VV 3R llpV# )zThe `exception_handler` decorator is deprecated, and will be removed in version 1.0.0. Refer to https://starlette.dev/exceptions/ for the recommended approach.c                    V ^8  d   QhRRRR/# r#   r~   r   r-   r/   )r0   s   "r1   r2   1Starlette.exception_handler.<locals>.__annotate__        	 	H 	 	r4   c                ,   < SP                  SV 4       V # rP   )r{   )r~   rx   r$   s   &r1   	decorator.Starlette.exception_handler.<locals>.decorator   s    &&'?FKr4   warningswarnDeprecationWarning)r$   rx   r   s   ff r1   exception_handlerStarlette.exception_handler   s*    W	
	 	 r4   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r#   rf   rT   r   r   rS   rg   r   r&   r-   r   r/   )r0   s   "r1   r2   r3      s<       " 	
   
r4   c                `   a aaaa \         P                  ! R\        4       R VVVVV 3R llpV# )z
We no longer document this decorator style API, and its usage is discouraged.
Instead you should use the following approach:

>>> routes = [Route(path, endpoint=...), ...]
>>> app = Starlette(routes=routes)
zThe `route` decorator is deprecated, and will be removed in version 1.0.0. Refer to https://starlette.dev/routing/ for the recommended approach.c                    V ^8  d   QhRRRR/# r   r/   )r0   s   "r1   r2   %Starlette.route.<locals>.__annotate__   s     	 	H 	 	r4   c                H   < SP                   P                  SV SSSR 7       V # )r   r   )r~   r   r   rS   rf   r$   s   &r1   r   "Starlette.route.<locals>.decorator   s0    KK!!"3 "  Kr4   r   )r$   rf   r   rS   r   r   s   fffff r1   r   Starlette.route   s,     	T	
	 	 r4   c               $    V ^8  d   QhRRRRRR/# )r#   rf   rT   rS   rg   r-   r   r/   )r0   s   "r1   r2   r3      s!      C z X r4   c                X   a aa \         P                  ! R\        4       R VVV 3R llpV# )z
We no longer document this decorator style API, and its usage is discouraged.
Instead you should use the following approach:

>>> routes = [WebSocketRoute(path, endpoint=...), ...]
>>> app = Starlette(routes=routes)
zThe `websocket_route` decorator is deprecated, and will be removed in version 1.0.0. Refer to https://starlette.dev/routing/#websocket-routing for the recommended approach.c                    V ^8  d   QhRRRR/# r   r/   )r0   s   "r1   r2   /Starlette.websocket_route.<locals>.__annotate__   r   r4   c                D   < SP                   P                  SV SR 7       V # )r   r   )r~   rS   rf   r$   s   &r1   r   ,Starlette.websocket_route.<locals>.decorator   s!    KK++D$T+BKr4   r   )r$   rf   rS   r   s   fff r1   websocket_routeStarlette.websocket_route   s,     	f	
	 	 r4   c                    V ^8  d   QhRRRR/# )r#   middleware_typerT   r-   r   r/   )r0   s   "r1   r2   r3      s      # ( r4   c                l   a  \         P                  ! R\        4       VR8X  g   Q R4       hR V 3R llpV# )z
We no longer document this decorator style API, and its usage is discouraged.
Instead you should use the following approach:

>>> middleware = [Middleware(...), ...]
>>> app = Starlette(middleware=middleware)
zThe `middleware` decorator is deprecated, and will be removed in version 1.0.0. Refer to https://starlette.dev/middleware/#using-middleware for recommended approach.httpz/Currently only middleware("http") is supported.c                    V ^8  d   QhRRRR/# r   r/   )r0   s   "r1   r2   *Starlette.middleware.<locals>.__annotate__   r   r4   c                6   < SP                  \        V R 7       V # ))dispatch)ru   r   )r~   r$   s   &r1   r   'Starlette.middleware.<locals>.decorator   s     2TBKr4   r   )r$   r   r   s   f& r1   r(   Starlette.middleware   sB     	d	

 &([*[[(	 	 r4   )r%   r)   r;   r7   r6   r:   )FNNNNNNrP   )NNT)__name__
__module____qualname____firstlineno____doc__r<   rL   propertyr'   rW   r^   rc   rj   rm   ru   r{   r   r   r   r   r   r   r(   __static_attributes__r/   r4   r1   r   r      st    +/5b, " "=:043VD8l@@( r4   )+
__future__r   r   collections.abcr   r   r   r   typingr   r	   r
   starlette.datastructuresr   r   starlette.middlewarer   r   starlette.middleware.baser   starlette.middleware.errorsr   starlette.middleware.exceptionsr   starlette.requestsr   starlette.responsesr   starlette.routingr   r   starlette.typesr   r   r   r   r   r   starlette.websocketsr   r   r    r   r/   r4   r1   <module>r      sY    "  B B * * 3 ? 8 = ? & ( / U U *
);
/cN^ ^r4   