t

package
v2.12.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2015 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Catcher func(recovered interface{}, rw http.ResponseWriter, req *http.Request) = defaultCatcher
View Source
var DEVELOPMENT = true
View Source
var Fallback func(rw http.ResponseWriter, req *http.Request) = defaultFallback
View Source
var (
	Router = router.New()
)

Functions

func CacheWithEtags

func CacheWithEtags()

func DELETE

func DELETE(path string, fn http.Handler) *route.Route

func DELETEFunc

func DELETEFunc(path string, fn http.HandlerFunc) *route.Route

func GET

func GET(path string, fn http.Handler) *route.Route

func GETFunc

func GETFunc(path string, fn http.HandlerFunc) *route.Route

func Mount

func Mount(mountpoint string, rtr *router.Router)

Mount mounts the given router under the given path

func PATCH

func PATCH(path string, fn http.Handler) *route.Route

func PATCHFunc

func PATCHFunc(path string, fn http.HandlerFunc) *route.Route

func POST

func POST(path string, fn http.Handler) *route.Route

func POSTFunc

func POSTFunc(path string, fn http.HandlerFunc) *route.Route

func PUT

func PUT(path string, fn http.Handler) *route.Route

func PUTFunc

func PUTFunc(path string, fn http.HandlerFunc) *route.Route

func RouteParam

func RouteParam(req *http.Request, name string) string

func Serve

func Serve() error

func ServeAddress

func ServeAddress(address string) error

func Static

func Static(path, directory string) *router.FileServer

func Use

func Use(middleware ...wrap.Wrapper)

Types

This section is empty.

Jump to

Keyboard shortcuts

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