Documentation ¶
Index ¶
- Constants
- func New() prifma.Module
- func NewResponseRequireAuth(req *http.Request) prifma.Response
- type BasicAuth
- func (t *BasicAuth) Call(command conf.Command) error
- func (t *BasicAuth) CallBlock(command conf.Command) (conf.Block, error)
- func (t *BasicAuth) Clone() prifma.Module
- func (t *BasicAuth) GetDirective() string
- func (t *BasicAuth) HandleRequest(result prifma.HandleRequestResult) (prifma.HandleRequestResult, error)
- func (t *BasicAuth) LoadHtpasswdFile(filename string) error
- func (t *BasicAuth) Off() error
- type ResponseRequireAuth
Constants ¶
View Source
const ModuleDirective = "basic_auth"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicAuth ¶
func (*BasicAuth) GetDirective ¶
func (*BasicAuth) HandleRequest ¶
func (t *BasicAuth) HandleRequest(result prifma.HandleRequestResult) (prifma.HandleRequestResult, error)
func (*BasicAuth) LoadHtpasswdFile ¶
type ResponseRequireAuth ¶
func (*ResponseRequireAuth) GetCode ¶
func (t *ResponseRequireAuth) GetCode() int
func (*ResponseRequireAuth) GetLAddr ¶
func (t *ResponseRequireAuth) GetLAddr() net.Addr
func (*ResponseRequireAuth) GetRAddr ¶
func (t *ResponseRequireAuth) GetRAddr() net.Addr
func (*ResponseRequireAuth) Write ¶
func (t *ResponseRequireAuth) Write(rw http.ResponseWriter, _ prifma.HandleRequestResult) error
Click to show internal directories.
Click to hide internal directories.