Documentation
¶
Overview ¶
Package runner provides HTTP client and execution for contract tests and Arazzo workflows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*http.Client
// Auth adds headers (e.g. Authorization, X-API-Key) to every request when set.
Auth func(*http.Request)
}
Client is an HTTP client configured for contract test runs (timeouts, optional retries, auth).
type Config ¶
type Config struct {
Timeout time.Duration // request timeout; 0 = 30s default
MaxConns int // max idle conns per host; 0 = default
SkipTLSVerify bool // skip TLS verification (insecure)
// TLSClientCertFile and TLSClientKeyFile load an optional client certificate (mTLS).
TLSClientCertFile string
TLSClientKeyFile string
// TLSCACertFile optionally adds a PEM CA bundle for verifying the server (e.g. private PKI).
TLSCACertFile string
// Auth applies to every request (e.g. Bearer token, API key header).
Auth func(*http.Request)
// ProxyURL routes requests through an explicit proxy when set.
ProxyURL string
}
Config configures the runner client.
Click to show internal directories.
Click to hide internal directories.