Skip to main content

Module proxy

Module proxy 

Source
Expand description

Reverse proxy /jupyter/* → loopback jupyter-server sidecar.

Two paths share one handler. Plain HTTP streams request/response bodies through untouched (the waratah_api cors_proxy machinery, with header filtering swapped to a hop-by-hop deny-list because jupyter needs cookies, XSRF headers, Range, and friends forwarded). RFC 6455 WebSocket upgrades tunnel as raw upgraded IO: the sidecar’s 101 Switching Protocols — handshake headers included — is relayed to the client verbatim, so this engine never computes or parses a WebSocket handshake; subprotocols, ping/pong, and permessage-deflate pass through unmodified. Kernel channels stay connected for hours: connect timeout only, no response or idle timeouts on this path.

Constants§

PROXY_BODY_LIMIT
Request body cap on /jupyter — notebook files with embedded images.

Functions§

router
Routes mounted at /jupyter.