Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultHealthPath = "/healthz"
Variables ¶
This section is empty.
Functions ¶
func NewMaxBody ¶
Per-route rather than global: an upload endpoint and a JSON one want different caps.
Types ¶
type Compress ¶
func NewCompress ¶
func NewCompress() Compress
Encoded lazily during Render through a pooled writer, so a response nobody renders costs nothing.
type Error ¶
func NewErrorRenderer ¶
NewErrorRenderer: first non-nil renderer wins. defaultRender always matches at the end — pass a catch-all last to replace the default.
type Standard ¶
type Standard struct {
Compress Compress
Health Health
Session Session
Tracing Tracing
Log Log
Error Error
Recover Recover
}
Standard: nil fields are skipped by All().
func NewStandard ¶
Click to show internal directories.
Click to hide internal directories.