Versions in this module Expand all Collapse all v0 v0.28.0 Aug 25, 2026 Changes in this version + const BodyOmittedComment + const Version + type Content struct + Comment string + Encoding string + MIMEType string + Size int64 + Text string + type Cookie struct + Domain string + Expires string + HttpOnly bool + Name string + Path string + Secure bool + Value string + type Creator struct + Name string + Version string + type Entry struct + Cache map[string]any + Request Request + Response Response + ServerIPAddress string + StartedDateTime string + Time float64 + Timings TimingsHAR + type NameValue struct + Name string + Value string + type PostData struct + Comment string + Encoding string + MIMEType string + Text string + type Recorder struct + func New(path string, clobber bool) (*Recorder, error) + func (r *Recorder) CaptureResponse(resp *http.Response) *ResponseCapture + func (r *Recorder) Close() error + func (r *Recorder) Finalize(resp *http.Response, response *ResponseCapture, timings Timings) error + func (r *Recorder) ObserveRequest(req *http.Request) + type Request struct + BodySize int64 + Cookies []Cookie + HTTPVersion string + Headers []NameValue + HeadersSize int64 + Method string + PostData *PostData + QueryString []NameValue + URL string + type Response struct + BodySize int64 + Content Content + Cookies []Cookie + HTTPVersion string + Headers []NameValue + HeadersSize int64 + RedirectURL string + Status int + StatusText string + type ResponseCapture struct + func (c *ResponseCapture) Size() int64 + func (c *ResponseCapture) Write(p []byte) (int, error) + type Timings struct + CompletedAt time.Time + Connect time.Duration + ConnectKnown bool + DNS time.Duration + DNSKnown bool + Receive time.Duration + ReceiveKnown bool + RemoteIP string + TLS time.Duration + TLSKnown bool + TransferKnown bool + TransferSize int64 + Wait time.Duration + WaitKnown bool + type TimingsHAR struct + Blocked float64 + Connect float64 + DNS float64 + Receive float64 + SSL float64 + Send float64 + Wait float64