Documentation
¶
Index ¶
Constants ¶
View Source
const HeaderColdStart = "X-KEDA-HTTP-Cold-Start"
HeaderColdStart is the response header that indicates whether a cold start occurred.
Variables ¶
This section is empty.
Functions ¶
func NewTestCtx ¶ added in v0.2.0
func NewTestCtx( method, path string, ) (*nethttp.Request, *httptest.ResponseRecorder)
Types ¶
type TransportPool ¶ added in v0.12.0
type TransportPool struct {
// contains filtered or unexported fields
}
TransportPool manages a pool of nethttp.Transport instances, reusing them based on response header timeout configuration.
NOTE: Transports are never evicted, we expect a low cardinality of timeouts
func NewTransportPool ¶ added in v0.12.0
func NewTransportPool(baseTransport *nethttp.Transport) *TransportPool
NewTransportPool creates a new transport pool with a base transport template
Click to show internal directories.
Click to hide internal directories.