
    hjei                        d Z ddlmZ ddlZ ej        e          ZddlmZm	Z	m
Z
 ddlmZ erddlmZ dZ G d	 d
e          ZddZdS )ze Bokeh Application Handler to look for Bokeh server request callbacks
in a specified Python module.

    )annotationsN)TYPE_CHECKINGAnyCallable   )Handler)HTTPServerRequest)RequestHandlerc                  P     e Zd ZU dZded<   d fdZdd
Zedd            Z xZ	S )r
   zE Load a script which contains server request handler callbacks.

    z-Callable[[HTTPServerRequest], dict[str, Any]]_process_requestreturnNonec                `    t                                                       t          | _        d S N)super__init___return_emptyr   )self	__class__s    Jlib/python3.11/site-packages/bokeh/application/handlers/request_handler.pyr   zRequestHandler.__init__8   s'     -    requestr	   dict[str, Any]c                ,    |                      |          S )a#   Processes incoming HTTP request returning a dictionary of
        additional data to add to the session_context.

        Args:
            request: HTTP request

        Returns:
            A dictionary of JSON serializable data to be included on
            the session context.
        )r   )r   r   s     r   process_requestzRequestHandler.process_request>   s     $$W---r   boolc                    dS )NT )r   s    r   safe_to_forkzRequestHandler.safe_to_forkK   s    tr   )r   r   r   r	   r   r   )r   r   )
__name__
__module____qualname____doc____annotations__r   r   propertyr   __classcell__)r   s   @r   r
   r
   1   s           DCCC. . . . . .. . . .    X    r   r
   r   r	   r   r   c                    i S r   r   )r   s    r   r   r   S   s    Ir   r    )r$   
__future__r   logging	getLoggerr!   logtypingr   r   r   handlerr   tornado.httputilr	   __all__r
   r   r   r   r   <module>r1      s     # " " " " " g!! 0 / / / / / / / / /       3222222    W   D     r   