Documentation
¶
Index ¶
- Variables
- func Release(ctx *Context)
- type Context
- func (ctx *Context) ElapsedTime() time.Duration
- func (ctx *Context) Finalize(wrapped *httputil.ResponseWriter)
- func (ctx *Context) Request() *http.Request
- func (ctx *Context) RequestTime() time.Time
- func (ctx *Context) Reset()
- func (ctx *Context) ResponseContentLength() int64
- func (ctx *Context) ResponseHeader() http.Header
- func (ctx *Context) ResponseStatus() int
- func (ctx *Context) ResponseTime() time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var Clock clock = defaultClock{}
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ElapsedTime ¶
func (*Context) Finalize ¶
func (ctx *Context) Finalize(wrapped *httputil.ResponseWriter)
func (*Context) RequestTime ¶
func (*Context) ResponseContentLength ¶
func (*Context) ResponseHeader ¶
func (*Context) ResponseStatus ¶
func (*Context) ResponseTime ¶
Click to show internal directories.
Click to hide internal directories.