package
0.1.0
Repository: https://github.com/caddyserver/gateway.git
Documentation: pkg.go.dev

# Packages

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

App is a robust, production-ready HTTP server.
AutoHTTPSConfig is used to disable automatic HTTPS or certain aspects of it for a specific server.
HTTPErrorConfig determines how to handle errors from the HTTP handlers.
HTTPRedirectListenerWrapper provides HTTP->HTTPS redirects for connections that come on the TLS port as an HTTP request, by detecting using the first few bytes that it's not a TLS handshake, but instead an HTTP request.
ListenerWrapper .
Match .
MatchClientIP matches requests by the client IP address, i.e.
MatchExpression matches requests by evaluating a [CEL](https://github.com/google/cel-spec) expression.
MatchNot matches requests by negating the results of its matcher sets.
MatchPathRE matches requests by a regular expression on the URI's path.
MatchRegexp is an embedable type for matching using regular expressions.
MatchRemoteIP matches requests by the remote IP address, i.e.
Metrics configures metrics observations.
ResponseHandler pairs a response matcher with custom handling logic.
ResponseMatcher is a type which can determine if an HTTP response matches some criteria.
Route consists of a set of rules for matching HTTP requests, a list of handlers to execute, and optional flow control parameters which customize the handling of HTTP requests in a highly flexible and performant manner.
Server describes an HTTP server.
ServerLogConfig describes a server's logging configuration.
StaticError implements a simple handler that returns an error.
StaticIPRange provides a static range of IP address prefixes (CIDRs).
StaticResponse implements a simple responder for static responses.
Subroute implements a handler that compiles and executes routes.
TLSListenerWrapper .
TrustedProxies .

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
ListenerWrappers .
MatchHeader matches requests by header fields.
MatchHeaderRE matches requests by a regular expression on header fields.
MatchHost matches requests by the Host value (case-insensitive).
MatchMethod matches requests by the method.
MatchPath case-insensitively matches requests by the URI's path.
MatchProtocol matches requests by protocol.
MatchQuery matches requests by the URI's query string.
MatchVars is an HTTP request matcher which can match requests based on variables in the context or placeholder values.
MatchVarsRE matches the value of the context variables by a given regular expression.
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
VarsMiddleware is an HTTP middleware which sets variables to have values that can be used in the HTTP request handler chain.
WeakString is a type that unmarshals any JSON value as a string literal, with the following exceptions: 1.