mux

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(rw ResponseWriter, req *http.Request)

type ResponseWriter

type ResponseWriter interface {
	http.ResponseWriter
	WriteError(statusCode int, err error)
	Error() error
	Status() int
	Size() int64
}

type ServeMux

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

func NewServeMux

func NewServeMux(h Handler) (*ServeMux, error)

func (*ServeMux) ServeHTTP

func (s *ServeMux) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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