Versions in this module Expand all Collapse all v0 v0.1.0 Jul 7, 2016 Changes in this version + const AnsiBlack + const AnsiBlue + const AnsiBold + const AnsiCyan + const AnsiGreen + const AnsiMagenta + const AnsiRed + const AnsiReset + const AnsiWhite + const AnsiYellow + const CacheControlNeverCache + const CookieRealToken + const CookieXSRFToken + const HeaderCacheControl + const HeaderContentTypeOptions + const HeaderFrameOptions + const HeaderServer + const HeaderXSRFToken + const HeaderXssProtection + const LocalCookies + const LogTimeFormat + var HeaderRequestErrors = "Request-Errors" + var Logger = NewStackLogger(os.Stdout) + func CommonHeaders(serverName string) httpserver.HandlerFunc + func Error(r *httpserver.Response, status int, errmsg string) + func Forbidden(r *httpserver.Response) + func LogAccess(c *httpserver.Context) + func LogError(c *httpserver.Context) + func LogHeaders(headerKeys ...string) func(c *httpserver.Context) + func LogRequest(c *httpserver.Context) + func MethodNotSupported(r *httpserver.Response) + func MustEncryptCookie(c *httpserver.Context, maxAge int, name string, value interface{}) + func ProtectCookies(key []byte) httpserver.HandlerFunc + func Recover(c *httpserver.Context) + func RouteNotFound(r *httpserver.Response) + func StaticError(r *httpserver.Response, status int, header string, body string) + func Unauthorized(r *httpserver.Response) + type RequestErrors struct + Errors []string + type RequestLog struct + Buffer *bytes.Buffer + type StackLogger struct + Global *log.Logger + Pool sync.Pool + func NewStackLogger(out io.Writer) *StackLogger + func (l *StackLogger) LogResponse(c *httpserver.Context, status string, value interface{}) + func (l *StackLogger) LogValue(c *httpserver.Context, name string, value interface{}) + func (l *StackLogger) Logf(c *httpserver.Context, format string, args ...interface{})