soheilhy / cmux

Connection multiplexer for GoLang: serve different services on the same port!
Apache License 2.0
2.53k stars 197 forks source link

Matching based on URL #87

Open Nv7-GitHub opened 3 years ago

Nv7-GitHub commented 3 years ago

Is it possible to Match based on URL? Like:

cmux.MatchURL("/example")
arch-zen commented 2 years ago

you can do like this -> http.HandleFunc("example",func(w http.ResponseWriter, r *http.Request){//do what you want to do})