Documentation ¶
Index ¶
- type DirectoryLimitType
- func (hdlr *DirectoryLimitType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *DirectoryLimitType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr DirectoryLimitType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryLimitType ¶
type DirectoryLimitType struct { Next http.Handler // Paths []string // thins directory browsing is enabled for -- Paths that are served with a directory index Disalow []string // Set of Directories to dis-allow LineNo int }
func NewDirectoryLimitServer ¶
func NewDirectoryLimitServer(n http.Handler, p []string, dis []string) *DirectoryLimitType
func (*DirectoryLimitType) InitializeWithConfigData ¶
func (hdlr *DirectoryLimitType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*DirectoryLimitType) PreValidate ¶
func (hdlr *DirectoryLimitType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (DirectoryLimitType) ServeHTTP ¶
func (hdlr DirectoryLimitType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.