http

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsASCII

func IsASCII(s string) bool

IsASCII checks if the given string contains only ASCII characters.

func ParseDomains

func ParseDomains(rule string) ([]string, error)

ParseDomains extract domains from rule.

Types

type Muxer

type Muxer struct {
	*mux.Router
	// contains filtered or unexported fields
}

Muxer handles routing with rules.

func NewMuxer

func NewMuxer() (*Muxer, error)

NewMuxer returns a new muxer instance.

func (*Muxer) AddRoute

func (r *Muxer) AddRoute(rule string, priority int, handler http.Handler) error

AddRoute add a new route to the router.

Jump to

Keyboard shortcuts

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