Documentation ¶
Index ¶
- type CoreHandler
- func (h *CoreHandler) AllowCredentials() *CoreHandler
- func (h *CoreHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *CoreHandler) SetHeaders(headers ...string) *CoreHandler
- func (h *CoreHandler) SetMethods(methods ...string) *CoreHandler
- func (h *CoreHandler) SetOrigins(origins ...string) *CoreHandler
- type ProxyHandler
- type RootHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreHandler ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.