Documentation
¶
Index ¶
- type CookieHandlerType
- func (hdlr CookieHandlerType) DeleteCookie(name string) (theCookie *http.Cookie)
- func (hdlr CookieHandlerType) GenCookie() (theCookie *http.Cookie)
- func (hdlr *CookieHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *CookieHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr CookieHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieHandlerType ¶
type CookieHandlerType 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.
CookiePath string //
Domain string //
Expires string // (time) // xyzzy - need a time type
MaxAge int //
Secure bool //
HttpOnly bool //
LineNo int
}
func NewCookieServer ¶
func NewCookieServer(n http.Handler, p []string, h, v string) *CookieHandlerType
func (CookieHandlerType) DeleteCookie ¶
func (hdlr CookieHandlerType) DeleteCookie(name string) (theCookie *http.Cookie)
func (CookieHandlerType) GenCookie ¶
func (hdlr CookieHandlerType) GenCookie() (theCookie *http.Cookie)
func (*CookieHandlerType) InitializeWithConfigData ¶
func (hdlr *CookieHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*CookieHandlerType) PreValidate ¶
func (hdlr *CookieHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (CookieHandlerType) ServeHTTP ¶
func (hdlr CookieHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.