Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderAcceptEncoding = "Accept-Encoding" HeaderContentEncoding = "Content-Encoding" HeaderContentLength = "Content-Length" HeaderVary = "Vary" )
View Source
const ( LoggerOpen = "open" LoggerClose = "close" )
Variables ¶
This section is empty.
Functions ¶
func BasicAuthWarp ¶
func BasicAuthWarp(h httprouter.Handle, userAndPws []string) httprouter.Handle
func BasicAuthWarp2 ¶
e.g. router.NotFound(BasicAuthWarp2(http.FileServer(http.Dir(assets)), []string{"admin:admin"}))
func CompatibleWarp ¶
func CompatibleWarp(handle http.HandlerFunc) httprouter.Handle
Types ¶
type ResponseMessage ¶
func (*ResponseMessage) Bytes ¶
func (m *ResponseMessage) Bytes() []byte
func (*ResponseMessage) String ¶
func (m *ResponseMessage) String() string
type Router ¶
type Router struct { *httprouter.Router // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.