response

package
v0.0.0-...-3b39f08 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(w http.ResponseWriter, r *http.Request, mimeType, etag string, content []byte, duration time.Duration)

Cache returns a response with caching headers.

func NotModified

func NotModified(w http.ResponseWriter)

NotModified sends a response with a 304 status code.

func Redirect

func Redirect(w http.ResponseWriter, r *http.Request, path string)

Redirect redirects the user to another location.

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