responsemeta

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL