RejectDirectory

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL