response

package
v0.0.0-...-5365f31 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 5 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 Compress

func Compress(w http.ResponseWriter, r *http.Request, data []byte)

Compress the response sent to the browser.

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