MCPcopy
hub / github.com/gorilla/mux / newRequestHost

Function newRequestHost

mux_test.go:3013–3017  ·  view source on GitHub ↗

newRequestHost a new request with a method, url, and host header

(method, url, host string)

Source from the content-addressed store, hash-verified

3011
3012// newRequestHost a new request with a method, url, and host header
3013func newRequestHost(method, url, host string) *http.Request {
3014 req := httptest.NewRequest(method, url, nil)
3015 req.Host = host
3016 return req
3017}

Callers 2

TestHostFunction · 0.85
TestSubrouterMatchingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected