HTML5Path

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML5PathType

type HTML5PathType struct {
	Next         http.Handler //
	Paths        []string     //
	LimitTo      []string     // Checked on Request AFTER return of 404 - since the req.URL.Path can have changed (think re-write)
	ReplaceWith  string       //
	IndexReplace string       // set to name of "index.html" file if you want all GET 404s to get repalce with try for this file. (Breaks 404)
	IndexPaths   []string     // set of paths that will be used with IndexReplace -- means server must know all client "paths" that might arive!
	LineNo       int          //
}

func NewHTML5PathServer

func NewHTML5PathServer(n http.Handler, p []string) *HTML5PathType

func (*HTML5PathType) InitializeWithConfigData

func (hdlr *HTML5PathType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*HTML5PathType) PreValidate

func (hdlr *HTML5PathType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (*HTML5PathType) ServeHTTP

func (hdlr *HTML5PathType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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