
    Mh                     \    d Z ddlmZmZ ddlmZ ddlmZ dZ G d de          Z	de	fgZ
d	S )
z-HTTP handler to shut down the Jupyter server.    )ioloopweb)
authorized)JupyterHandlerserverc                   F    e Zd ZdZeZej        ed                         Z	dS )ShutdownHandlerzA shutdown API handler.c                    K   | j                             d           | j        r| j                                         d{V  t          j                                                                         dS )zShut down the server.z'Shutting down on /api/shutdown request.N)loginfo	serverapp_cleanupr   IOLoopcurrentstop)selfs    `/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/jupyter_server/services/shutdown.pypostzShutdownHandler.post   ss       	?@@@> 	,.))+++++++++$$&&&&&    N)
__name__
__module____qualname____doc__AUTH_RESOURCEauth_resourcer   authenticatedr   r    r   r   r	   r	      sF        !!!M' ' Z ' ' 'r   r	   z/api/shutdownN)r   tornador   r   jupyter_server.auth.decoratorr   jupyter_server.base.handlersr   r   r	   default_handlersr   r   r   <module>r"      s    3 3         4 4 4 4 4 4 7 7 7 7 7 7' ' ' ' 'n ' ' '$ '   r   