package
0.0.0-20250228095952-3583c10e372d
Repository: https://github.com/cloudfoundry/gorouter.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
ContextRequestInfo gets the RequestInfo from the request Context.
CreateDomainAllowlist collects the static parts of wildcard allowlist expressions and wildcards stripped of their first segment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewAccessLog creates a new handler that handles logging requests to the access log.
No description provided by the author
No description provided by the author
NewHopByHop creates a new handler that sanitizes hop-by-hop headers based on the HopByHopHeadersToFilter config.
NewHTTPLatencyPrometheus creates a new handler that handles prometheus metrics for latency.
No description provided by the author
NewHTTPStartStop creates a new handler that handles emitting frontend HTTP StartStop events.
NewLookup creates a handler responsible for looking up a route.
NewAccessLog creates a new handler that handles logging requests to the access log.
NewPanicCheck creates a handler responsible for checking for panics and setting the Healthcheck to fail.
NewProtocolCheck creates a handler responsible for checking the protocol of the request.
NewHealthcheck creates a handler that responds to healthcheck requests.
Creates a per-request decision on which reverse proxy to use, based on whether a request contained an `Expect: 100-continue` header.
NewProxyWriter creates a handler responsible for setting a proxy responseWriter on the request and response.
NewQueryParam creates a new handler that emits warnings if requests came in with semicolons un-escaped.
NewReporter creates a new handler that handles reporting backend responses to metrics and missing Content-Length header.
NewRequestInfo creates a RequestInfoHandler.
NewRouteService creates a handler responsible for handling route services.
No description provided by the author
NewW3C creates a new handler that sets W3C headers on requests.
NewW3CTraceparent returns W3C traceparent header value according to https://www.w3.org/TR/trace-context/#version-format It uses trace ID and span ID provided in the request context Or generates new IDs.
NewW3CTracestate generates a new set of W3C tracestate pairs according to https://www.w3.org/TR/trace-context/#version-format Initially it is populated with the current tracestate determined by arguments tenantID and parentID.
NewZipkin creates a new handler that sets Zipkin headers on requests.
No description provided by the author
ParseW3CTraceparent parses a W3C traceparent header value according to https://www.w3.org/TR/trace-context/#version-format If it cannot parse the input header string it returns nil.
No description provided by the author
# Constants
No description provided by the author
bytes * kb.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
RequestInfo stores all metadata about the request and is used to pass information between handlers.
RequestInfoHandler adds a RequestInfo to the context of all requests that go through this handler.
No description provided by the author
No description provided by the author
W3C is a handler that sets W3C headers on requests.
W3CTraceparent is a struct which represents the traceparent header See https://www.w3.org/TR/trace-context/.
W3CTracestateEntry represents a Tracestate entry: a key value pair.
No description provided by the author
Zipkin is a handler that sets Zipkin headers on requests.
# Interfaces
No description provided by the author
# Type aliases
W3CTracestate is an alias for a slice W3CTracestateEntry; has helper funcs.