handlers.service_worker.handler
ServiceWorkerHandler Objects
class ServiceWorkerHandler(StaticFileHandler, JupyterHandler)
Serve the service worker script.
initialize
def initialize() -> None
Initialize the API spec handler.
validate_absolute_path
def validate_absolute_path(root: str, absolute_path: str) -> Optional[str]
Only allow to serve the service worker
get_content_type
def get_content_type() -> str
Get the content type.
set_extra_headers
def set_extra_headers(path: str) -> None
Add extra headers to the response