Documentation
¶
Index ¶
- type HeaderType
- func (hdlr *HeaderType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *HeaderType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *HeaderType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderType ¶
type HeaderType struct { Next http.Handler Paths []string Name string // if Name starts with "-" then delete existing header before creating new one. Value string // if Value is "" then do not set header. LineNo int }
func NewHeaderServer ¶
func NewHeaderServer(n http.Handler, p []string, h, v string) *HeaderType
func (*HeaderType) InitializeWithConfigData ¶
func (hdlr *HeaderType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*HeaderType) PreValidate ¶
func (hdlr *HeaderType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*HeaderType) ServeHTTP ¶
func (hdlr *HeaderType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.