Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyPrintJSON ¶
PrettyPrintJSON formats and writes JSON content to w.
Types ¶
type Options ¶
type Options struct {
Save bool
Verbose bool
// Quiet suppresses everything but the one-line status (`# @no-log`);
// saving still happens when Save is set.
Quiet bool
}
Options control what Response does with the already-read body.
type Summary ¶
type Summary struct {
StatusLine string // e.g. "200 OK" or "14 Unavailable"
StatusCode int // used in saved filenames
Duration time.Duration
ContentLength int64
Header http.Header
ContentType string
}
Summary is the protocol-agnostic view of a finished request that Print renders: HTTP responses and gRPC outcomes both reduce to it.
Click to show internal directories.
Click to hide internal directories.