Documentation
¶
Overview ¶
Package context manages the insertion of Request-specific information (which cache to use, etc.) into proxied HTTP requests
Index ¶
- func HealthCheckFlag(ctx context.Context) bool
- func Hops(ctx context.Context) (int32, int32)
- func IncrementedRewriterHops(ctx context.Context, i int32) int32
- func Resources(ctx context.Context) any
- func RewriterHops(ctx context.Context) int32
- func StartRewriterHops(ctx context.Context) context.Context
- func WithHealthCheckFlag(ctx context.Context, isHealthCheck bool) context.Context
- func WithHops(ctx context.Context, current, maxHops int32) context.Context
- func WithResources(ctx context.Context, r any) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheckFlag ¶
HealthCheckFlag returns true if the request is a health check request
func IncrementedRewriterHops ¶
IncrementedRewriterHops returns the current incremented hop count from the ctx
func RewriterHops ¶
RewriterHops returns the RewriterHops data associated with the request
func StartRewriterHops ¶
StartRewriterHops returns a context with rewriterHopsKey = 0
func WithHealthCheckFlag ¶
WithHealthCheckFlag returns a copy of the provided context that also includes a bit indicating the request is performing a health check
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.