Skip to content

httpmux wraps http.ServeMux with more features.

License

Notifications You must be signed in to change notification settings

moonrhythm/httpmux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpmux

Go Report Card GoDoc

httpmux wraps http.ServeMux with more features.

Usages

mux := httpmux.New()
mux.Handle("/path", handler) // /path

g := mux.Group("/group")
g.Handle("/path", handler) // /group/path
g.Handle("POST /path2", handler) // POST /group/path2

authed := mux.Middleware(authMiddleware)
authed.Handle("POST /get-orders", handler) // POST /get-orders with authMiddleware

About

httpmux wraps http.ServeMux with more features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages