Documentation ¶
Overview ¶
Package origin provides utilities for determining the remote IP and SSL use of HTTP connections in complex proxied backend environments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EarliestTrustedLeg ¶
func EarliestTrustedLeg(req *http.Request) *originfuncs.Leg
Like Legs, but returns only the earliest trusted leg (or nil).
func Legs ¶
func Legs(req *http.Request) []originfuncs.Leg
Uses gorilla/context. Returns the legs for the request. Automatically parses the legs if they have not been parsed yet and caches the outcome using gorilla/context. If you aren't yourself using gorilla/context, remember to set it up to clear context data for exiting requests.
func TrustedLegs ¶
func TrustedLegs(req *http.Request) []originfuncs.Leg
Like Legs, but returns only trusted legs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.