Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2026 Changes in this version + func CloneHeader(h http.Header) http.Header + type CloseInfo struct + At time.Time + Err error + Kind SessionKind + SessionID string + Target string + type Direction string + const DirectionClientToUpstream + const DirectionUpstreamToClient + type ErrorInfo struct + At time.Time + Err error + Kind SessionKind + SessionID string + Stage string + Target string + type HTTPRequest struct + At time.Time + Body InlineBody + Header http.Header + Method string + SessionID string + URL string + func (r HTTPRequest) Clone() HTTPRequest + type HTTPResponse struct + At time.Time + Body InlineBody + Header http.Header + SessionID string + StatusCode int + func (r HTTPResponse) Clone() HTTPResponse + type HTTPRoundTrip struct + Request HTTPRequest + Response HTTPResponse + Session Session + Timings Timings + func (rt HTTPRoundTrip) Clone() HTTPRoundTrip + type Hooks struct + OnError func(context.Context, ErrorInfo) + OnHTTPRequest func(context.Context, HTTPRequest) error + OnHTTPResponse func(context.Context, HTTPResponse) error + OnHTTPRoundTrip func(context.Context, HTTPRoundTrip) error + OnProtocolEvent func(context.Context, ProtocolEvent) error + OnSessionClose func(context.Context, CloseInfo) + OnSessionOpen func(context.Context, Session) error + OnWSFrame func(context.Context, WSFrame) error + type InlineBody struct + Bytes []byte + ContentEncoding string + ContentType string + TotalSize int64 + Truncated bool + func (b InlineBody) Clone() InlineBody + type ProtocolEvent struct + At time.Time + Direction Direction + Name string + Namespace string + Payload []byte + SessionID string + func (e ProtocolEvent) Clone() ProtocolEvent + type Session struct + ClientAddr string + ID string + Kind SessionKind + StartedAt time.Time + Target string + type SessionKind string + const SessionKindConnect + const SessionKindHTTP + const SessionKindTCP + const SessionKindUnknown + const SessionKindWebSocket + type Timings struct + Connect time.Duration + DNS time.Duration + TLS time.Duration + TTFB time.Duration + Total time.Duration + type WSFrame struct + At time.Time + Direction Direction + Payload []byte + SessionID string + Type WSMessageType + func (f WSFrame) Clone() WSFrame + type WSMessageType string + const WSMessageBinary + const WSMessageClose + const WSMessageOther + const WSMessagePing + const WSMessagePong + const WSMessageText