Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultKeysForStatus ¶
func IsAssetPath ¶
Types ¶
type BufRW ¶
type BufRW struct {
W http.ResponseWriter
R *http.Request
Status int
// contains filtered or unexported fields
}
func (*BufRW) FlushToReal ¶
func (b *BufRW) FlushToReal()
func (*BufRW) WriteHeader ¶
type Config ¶
type Config struct {
Bypass func(r *http.Request) bool
Raw func(r *http.Request) bool
KeysForStatus func(code int) (titleKey, bodyKey string)
Capture func(r *http.Request) (*http.Request, func(*http.Request) *http.Request)
PrepareRender func(w http.ResponseWriter, r *http.Request) *http.Request
Render func(w http.ResponseWriter, r *http.Request, data map[string]interface{})
OnPanic func(rec interface{})
}
Click to show internal directories.
Click to hide internal directories.