MCPcopy
hub / github.com/cortesi/devd / ResponseDone

Method ResponseDone

timer/timer.go:46–48  ·  view source on GitHub ↗

ResponseDone sets the time at which request headers were received

()

Source from the content-addressed store, hash-verified

44
45// ResponseDone sets the time at which request headers were received
46func (t *Timer) ResponseDone() {
47 t.tsResponseDone = time.Now().UnixNano()
48}
49
50// NewContext creates a new context with the timer included
51func (t *Timer) NewContext(ctx context.Context) context.Context {

Callers 2

WriteMethod · 0.80
WriteHeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected