handler

package
v0.0.0-...-19ea1ac Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreHandler

type CoreHandler struct {
	http.Handler
	// contains filtered or unexported fields
}

func NewCoreHandler

func NewCoreHandler(handler http.Handler) *CoreHandler

func (*CoreHandler) AllowCredentials

func (h *CoreHandler) AllowCredentials() *CoreHandler

func (*CoreHandler) ServeHTTP

func (h *CoreHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*CoreHandler) SetHeaders

func (h *CoreHandler) SetHeaders(headers ...string) *CoreHandler

func (*CoreHandler) SetMethods

func (h *CoreHandler) SetMethods(methods ...string) *CoreHandler

func (*CoreHandler) SetOrigins

func (h *CoreHandler) SetOrigins(origins ...string) *CoreHandler

type ProxyHandler

type ProxyHandler struct {
	PathPrefix string
	Proxy      types.Proxy
}

func NewProxyHandler

func NewProxyHandler(pathPrefix string, proxy types.Proxy) *ProxyHandler

func (ProxyHandler) ServeHTTP

func (h ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RootHandler

type RootHandler struct {
	PathPrefix string
	StaticPath string
	IndexPaths []string `default:"[\"index.html\"]"`
}

func NewRootHandler

func NewRootHandler(pathPrefix, staticPath string, indexPaths ...string) *RootHandler

func (*RootHandler) ServeHTTP

func (h *RootHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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