Documentation
¶
Overview ¶
Package capture records sanitized HTTP traffic while proxying client requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecisionsFromCapture ¶
DecisionsFromCapture writes a redacted Plex decision corpus from a proxy capture.
func FixturesFromCapture ¶
FixturesFromCapture writes fixtures from observed reference responses without replay. Captures must contain origin markers; older ambiguous captures must be recaptured.
func ProfileFromCapture ¶
ProfileFromCapture converts an ordered capture into an explicitly captured profile. It refuses incomplete text requests, since they cannot be replayed faithfully.
Types ¶
type Entry ¶
type Entry struct {
Sequence int `json:"sequence"`
Protocol string `json:"protocol"`
Client string `json:"client"`
Request Request `json:"request"`
Response conform.Response `json:"response"`
ResponseOrigin string `json:"response_origin,omitempty"`
RequestTruncated bool `json:"request_truncated,omitempty"`
ResponseTruncated bool `json:"response_truncated,omitempty"`
}
Entry is a single ordered request and response. Bodies are always redacted; binary bodies are represented by bounded hashes, never bytes.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.