Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseMeta ¶
type ResponseMeta struct {
Method string
URL string
Status int
Latency time.Duration
Headers map[string]string
PageCount uint64
RetryCount uint64
}
ResponseMeta is a sanitized, application-level representation of an HTTP interaction. It avoids exposing raw http.Request/Response to higher layers and strips credentials.
func NewResponseMeta ¶
func NewResponseMeta(request *http.Request, response *http.Response, latency time.Duration, attempts uint64) *ResponseMeta
NewResponseMeta constructs a ResponseMeta for printing or logging purposes.
Click to show internal directories.
Click to hide internal directories.