http

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFound

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

Types

type Error

type Error struct {
	Message string
	Code    int
}

func NewError

func NewError(message string, code int) Error

func (Error) Error

func (e Error) Error() string

type Handler

type Handler func(http.ResponseWriter, *http.Request) error

func (Handler) ServeHTTP

func (fn Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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