x

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const WellKnownHealthPath = "/.well-known/health"

Variables

This section is empty.

Functions

func Jupyter added in v0.2.8

func Jupyter(next http.Handler) http.Handler

VSCode web edition makes cors request to /hub/api endpoint in order to determine if the backend api is a JupyterHub or JupyterLab/JupyterServer

If the Access-Control-Allow-Origin header is absent, the request will not make through. Here we add this header to make VSCode web happy

Tested on: - github.dev - vscode.dev - insider.vscode.dev

Needs to have Jupyter extension installed

func ReverseProxy added in v0.1.9

func ReverseProxy(addr string) http.Handler

func WellKnownHealthMiddleware

func WellKnownHealthMiddleware(next http.Handler) http.Handler

Types

type AugmentedHandler

type AugmentedHandler interface {
	http.Handler
	PkgPath() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL