MCPcopy
hub / github.com/cortesi/devd / MuxMatch

Method MuxMatch

route.go:117–120  ·  view source on GitHub ↗

MuxMatch produces a match clause suitable for passing to a Mux

()

Source from the content-addressed store, hash-verified

115
116// MuxMatch produces a match clause suitable for passing to a Mux
117func (f Route) MuxMatch() string {
118 // Path is guaranteed to start with /
119 return f.Host + f.Path
120}
121
122// RouteCollection is a collection of routes
123type RouteCollection map[string]Route

Callers 3

AddMethod · 0.45
mainFunction · 0.45
notFoundMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected