webhandlers

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, r *http.Request, err error)

Error writes the error to the response writer.

func NewContextWithErrorValue

func NewContextWithErrorValue(parent context.Context) (ctx context.Context, getError func() error)

NewContextWithErrorValue returns a context derived from parent and a func that returns any error stored by the Error handler.

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

NotFound is the handler for routes that could not be found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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