MCPcopy Create free account
hub / github.com/imroc/req / setReceivedAt

Method setReceivedAt

response.go:147–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (r *Response) setReceivedAt() {
148 r.receivedAt = time.Now()
149 if r.Request.trace != nil {
150 r.Request.trace.endTime = r.receivedAt
151 }
152}
153
154// UnmarshalJson unmarshalls JSON response body into the specified object.
155func (r *Response) UnmarshalJson(v any) error {

Callers 2

ToBytesMethod · 0.95
handleDownloadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected