context

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package context provides the ability to store request-scoped values on an http.Request instance. These values are cleared after every request. This package was created due to Go v1.7 moving the context package into the stdlib, which had a net effect of breaking some functionality from the existing gorilla/context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(r *http.Request)

func Get

func Get(r *http.Request, key interface{}) interface{}

func Set

func Set(r *http.Request, key, val interface{}) *http.Request

Types

This section is empty.

Jump to

Keyboard shortcuts

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