mux

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware func(http.Handler) http.Handler

type Mux

type Mux struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func NewServeMux

func NewServeMux(mws ...Middleware) *Mux

func (*Mux) DELETE

func (m *Mux) DELETE(path string, handler func(http.ResponseWriter, *http.Request))

func (*Mux) GET

func (m *Mux) GET(path string, handler func(http.ResponseWriter, *http.Request))

func (*Mux) HEAD

func (m *Mux) HEAD(path string, handler func(http.ResponseWriter, *http.Request))

func (*Mux) Handle

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

func (*Mux) HandleFunc

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

func (*Mux) HandleFuncMethod

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

func (*Mux) OPTIONS

func (m *Mux) OPTIONS(path string, handler func(http.ResponseWriter, *http.Request))

func (*Mux) PATCH

func (m *Mux) PATCH(path string, handler func(http.ResponseWriter, *http.Request))

func (*Mux) POST

func (m *Mux) POST(path string, handler func(http.ResponseWriter, *http.Request))

func (*Mux) PUT

func (m *Mux) PUT(path string, handler func(http.ResponseWriter, *http.Request))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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