origin

package
v0.0.0-...-8fa2440 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2016 License: MIT Imports: 4 Imported by: 3

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 IsSSL

func IsSSL(req *http.Request) bool

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL