
    hje                    n    d Z ddlmZ ddlZ ej        e          ZddlmZm	Z	 dZ
 G d de	          ZdS )z8 Provide a request handler that returns a favicon.ico.

    )annotationsN)	HTTPErrorRequestHandler)
IcoHandlerc                      e Zd ZdZd Zd ZdS )r   zM Implements a custom Tornado request handler for favicon.ico
    files.

    c                :    |                     d          | _        d S )Napp)getr	   )selfargskws      >lib/python3.11/site-packages/bokeh/server/views/ico_handler.py
initializezIcoHandler.initialize1   s    66%==    c                   K   | j         j        t          d          |                     dd           |                     | j         j                   |                                 S )Ni  )status_codezContent-Typezimage/x-icon)r	   iconr   
set_headerwriteflush)r   r   kwargss      r   r
   zIcoHandler.get4   sY      8= ,,,,777

48=!!!zz||r   N)__name__
__module____qualname____doc__r   r
    r   r   r   r   +   s<         
! ! !    r   r   )r   
__future__r   logging	getLoggerr   logtornado.webr   r   __all__r   r   r   r   <module>r#      s     # " " " " " g!! 2 1 1 1 1 1 1 1         r   