Documentation ¶
Index ¶
- type PrefixHandlerType
- func (hdlr *PrefixHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *PrefixHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *PrefixHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrefixHandlerType ¶
type PrefixHandlerType struct { Next http.Handler // Paths []string // Paths that this will work for Prefix string // Prefix to put before JSON responses PrePend string // "set", "yes"=="before"==PrePend, "after" LineNo int // }
func NewPrefixServer ¶
func NewPrefixServer(n http.Handler, p []string, reMatch string) *PrefixHandlerType
func (*PrefixHandlerType) InitializeWithConfigData ¶
func (hdlr *PrefixHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*PrefixHandlerType) PreValidate ¶
func (hdlr *PrefixHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*PrefixHandlerType) ServeHTTP ¶
func (hdlr *PrefixHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.