h2non / gentleman

Plugin-driven, extensible HTTP client toolkit for Go

Home Page:https://pkg.go.dev/github.com/h2non/gentleman?tab=doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiplexer combinators

h2non opened this issue · comments

commented
// Every conditional
mux.If(mux.Method("GET"), mux.Status(200))

// Some conditional
mux.Or(mux.Method("GET"), mux.Status(200))
commented

Done!