handlers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildReverseProxyService

func BuildReverseProxyService(service map[string]any, name string) (*httputil.ReverseProxy, bool)

creates a new reverse proxy service based on the given user configuration

func BuildStaticFileSystemHandler

func BuildStaticFileSystemHandler(service map[string]any, name string, route string) (http.Handler, bool)

func BuildWSGIHandler

func BuildWSGIHandler(service map[string]any) (http.Handler, bool)

func DebugHandler

func DebugHandler(w http.ResponseWriter, r *http.Request)

handles debug requests if the server is running in developmentMode

Types

type InterchangeStaticFSHandler

type InterchangeStaticFSHandler struct {
	// contains filtered or unexported fields
}

a custom static file handler for interchange

func (InterchangeStaticFSHandler) ServeHTTP

Jump to

Keyboard shortcuts

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