httpmux

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 3 Imported by: 2

README

httpmux

Go Report Card GoDoc

httpmux wraps http.ServeMux with more features.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mux

type Mux struct {
	// contains filtered or unexported fields
}

Mux type

func New

func New() *Mux

New creates new mux

func (*Mux) Group

func (m *Mux) Group(prefix string, middleware func(http.Handler) http.Handler) *Mux

Group creates new group mux

func (*Mux) Handle

func (m *Mux) Handle(pattern string, handler http.Handler)

Handle registers handler into mux

func (*Mux) HandleFunc

func (m *Mux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

HandleFunc registers handler into mux

func (*Mux) ServeHTTP

func (m *Mux) 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