File: route_key.go

package info (click to toggle)
golang-github-jarcoal-httpmock 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package internal

type RouteKey struct {
	Method string
	URL    string
}

var NoResponder RouteKey

func (r RouteKey) String() string {
	if r == NoResponder {
		return "NO_RESPONDER"
	}
	return r.Method + " " + r.URL
}