mux

package
v0.0.0-...-eb9771f Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2015 License: MIT, MPL-2.0 Imports: 5 Imported by: 1

Documentation

Overview

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Params

func Params(c context.Context) httprouter.Params

Types

type Mux

type Mux struct {
	Router   *httprouter.Router
	Chain    chain.Chain
	NotFound fever.Handler
}

func New

func New() *Mux

func (*Mux) Delete

func (m *Mux) Delete(path string) *router

func (*Mux) Get

func (m *Mux) Get(path string) *router

func (*Mux) Handle

func (m *Mux) Handle(method, path string) *router

func (*Mux) Head

func (m *Mux) Head(path string) *router

func (*Mux) Options

func (m *Mux) Options(path string) *router

func (*Mux) Patch

func (m *Mux) Patch(path string) *router

func (*Mux) Post

func (m *Mux) Post(path string) *router

func (*Mux) Put

func (m *Mux) Put(path string) *router

func (*Mux) ServeHTTP

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

func (*Mux) Use

func (m *Mux) Use(mws ...fever.Middleware)

Jump to

Keyboard shortcuts

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