Documentation
¶
Index ¶
Constants ¶
View Source
const ( TLSErrorTypeUnknownCA = "unknown_ca" TLSErrorTypeExpiredCert = "expired_cert" TLSErrorTypeCipherMismatch = "cipher_mismatch" TLSErrorTypeHostnameMismatch = "hostname_mismatch" TLSErrorTypeOther = "other" )
TLS error type constants for categorization.
Variables ¶
This section is empty.
Functions ¶
func NewProxyErrorHandler ¶ added in v0.32.0
func NewProxyErrorHandler() func(http.ResponseWriter, *http.Request, error)
NewProxyErrorHandler returns an error handler for httputil.ReverseProxy that tracks TLS connection errors and then delegates to the default behavior.
func WithBodyTracking ¶ added in v0.32.0
WithBodyTracking wraps the handler to track request and response body bytes. Only requests that are routed to a backend shard (i.e., have a shard name in context) are counted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.