Documentation ¶
Overview ¶
Package timer adds HTTP request and response timing information to a context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer collects request and response timing information
func FromContext ¶
FromContext creates a new context with the timer included
func (*Timer) NewContext ¶
NewContext creates a new context with the timer included
func (*Timer) RequestHeaders ¶
func (t *Timer) RequestHeaders()
RequestHeaders sets the time at which request headers were received
func (*Timer) ResponseDone ¶
func (t *Timer) ResponseDone()
ResponseDone sets the time at which request headers were received
func (*Timer) ResponseHeaders ¶
func (t *Timer) ResponseHeaders()
ResponseHeaders sets the time at which request headers were received
Click to show internal directories.
Click to hide internal directories.