Documentation
¶
Index ¶
- type HTML5PathType
- func (hdlr *HTML5PathType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *HTML5PathType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *HTML5PathType) ServeHTTP(www http.ResponseWriter, req *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.