# Functions
OrigRemoteAddrFromCtx attempts to get the original remote address value from the context provided.
ParseListeners parses the list of listeners into a slice of ListenerConfig structs.
ParseSingleIPTemplate is used as a helper function to parse out a single IP address from a config parameter.
No description provided by the author
TrustedFromXForwardedFor will use the XForwardedFor* listener config settings to determine how/if X-Forwarded-For are trusted/allowed for an inbound request.
No description provided by the author
WithDefaultUiContentSecurityPolicyHeader provides a default value for the UI listener's Content-Security-Policy header.
WrapCustomHeadersHandler wraps the handler to pass a custom ResponseWriter struct to all later wrappers and handlers to assign custom headers by status code.
WrapForwaredForHandler is an http middleware handler which uses the XForwardedFor* listener config settings to determine how/if X-Forwarded-For are trusted/allowed for an inbound request.
# Variables
No description provided by the author
# Structs
Addr represents only the Host and Port of a TCP address.
No description provided by the author
ListenerConfig is the listener configuration for the server.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
ErrResponseFn provides a func to call whenever WrapForwardedForHandler encounters an error.
Option - how Options are passed as arguments.