source

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKey defines the context key used to store within the context.
	ContextKey = contextKey("source")
)

Functions

func Get

func Get(ctx context.Context) *url.URL

Get returns the source for redirects from context.

func Source

func Source(next http.Handler) http.Handler

Source writes the parsed source URL into the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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