miscctx

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: 9 Imported by: 0

Documentation

Overview

Package miscctx provides miscellaneous context items which can be associated with an HTTP request.

Package miscctx provides miscellaneous context items which can be associated with an HTTP request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCSPNonce

func GetCSPNonce(req *http.Request) string

func GetCanOutputTime

func GetCanOutputTime(req *http.Request) bool

func GetResponseWriter

func GetResponseWriter(req *http.Request) http.ResponseWriter

Get the response writer which has been set as corresponding to the given request.

func RedirectTo

func RedirectTo(req *http.Request, code int, url string)

func SeeOther

func SeeOther(req *http.Request, url string)

func SetCanOutputTime

func SetCanOutputTime(req *http.Request)

func SetResponseWriter

func SetResponseWriter(rw http.ResponseWriter, req *http.Request)

Set the response writer corresponding to the given request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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