Source code for bokeh.protocol.messages.server_info_req

#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# Boilerplate
#-----------------------------------------------------------------------------
from __future__ import annotations

import logging # isort:skip
log = logging.getLogger(__name__)

#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------

# Standard library imports
from typing import Any

# Bokeh imports
from ..message import Empty, Message

#-----------------------------------------------------------------------------
# Globals and constants
#-----------------------------------------------------------------------------

__all__ = (
    'server_info_req',
)

#-----------------------------------------------------------------------------
# General API
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# Dev API
#-----------------------------------------------------------------------------

[docs]class server_info_req(Message[Empty]): ''' Define the ``SERVER-INFO-REQ`` message for requesting a Bokeh server provide information about itself. The ``content`` fragment of for this message is empty. ''' msgtype = 'SERVER-INFO-REQ'
[docs] @classmethod def create(cls, **metadata: Any) -> server_info_req: ''' Create an ``SERVER-INFO-REQ`` message Any keyword arguments will be put into the message ``metadata`` fragment as-is. ''' header = cls.create_header() content = Empty() return cls(header, metadata, content)
#----------------------------------------------------------------------------- # Private API #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Code #-----------------------------------------------------------------------------