mux

package
Version: v0.0.0-...-26839bd Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2015 License: MPL-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Params

func Params(r *http.Request) httprouter.Params

Params(r *http.Request) is a function to get URL params from the request context

Types

type Mux

type Mux struct {
	Router *httprouter.Router
	Chain  alice.Chain
}

func New

func New() *Mux

func (*Mux) Delete

func (m *Mux) Delete(p string) *route

func (*Mux) Get

func (m *Mux) Get(p string) *route

func (*Mux) Head

func (m *Mux) Head(p string) *route

func (*Mux) Patch

func (m *Mux) Patch(p string) *route

func (*Mux) Post

func (m *Mux) Post(p string) *route

func (*Mux) Put

func (m *Mux) Put(p string) *route

func (*Mux) ServeHTTP

func (m *Mux) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Mux) Use

func (m *Mux) Use(middlewares ...alice.Constructor)

Source Files

Jump to

Keyboard shortcuts

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