html

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(w http.ResponseWriter, err error)

BadRequest sends a 400 error to the browser.

func Forbidden

func Forbidden(w http.ResponseWriter)

Forbidden sends a 403 error to the browser.

func NotFound

func NotFound(w http.ResponseWriter)

NotFound sends a 404 error to the browser.

func OK

func OK(w http.ResponseWriter, r *http.Request, b []byte)

OK writes a standard HTML response.

func ServerError

func ServerError(w http.ResponseWriter, err error)

ServerError sends a 500 error to the browser.

Types

This section is empty.

Jump to

Keyboard shortcuts

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