jupyter-server-proxy is designed to run and proxy web services. If you want a very simple example try this:
import sys
c.ServerProxy.servers = {
"python-http": {
"command": [sys.executable, '-mhttp.server', '{port}'],
},
and go to /user/<username>/python-http/
See Starting & Proxying processes — Jupyter Server Proxy documentation for more information