Skip to main content

handlers.service_worker.handler

ServiceWorkerHandler Objects

class ServiceWorkerHandler(web.StaticFileHandler, JupyterHandler)

Serve the service worker script.

initialize

def initialize()

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()

Get the content type.

set_extra_headers

def set_extra_headers(path: str) -> None

Add extra headers to the response