MCPcopy Create free account
hub / github.com/goadesign/goa / ServeHTTP

Method ServeHTTP

http/mux.go:48–48  ·  view source on GitHub ↗

ServeHTTP dispatches the request to the handler whose method matches the request method and whose pattern most closely matches the request URL.

(http.ResponseWriter, *http.Request)

Source from the content-addressed store, hash-verified

46 // matches the request method and whose pattern most closely
47 // matches the request URL.
48 ServeHTTP(http.ResponseWriter, *http.Request)
49
50 // Vars returns the path variables captured for the given
51 // request.

Callers 15

TestMiddlewaresFunction · 0.95
TestVarsFunction · 0.95
TestRequestPatternFunction · 0.95
TestResolvePatternFunction · 0.95
TestSmartRedirectSlashesFunction · 0.95
ServeHTTPMethod · 0.65
DebugFunction · 0.65
RequestIDFunction · 0.65
SmartRedirectSlashesFunction · 0.65
PopulateRequestContextFunction · 0.65
TraceFunction · 0.65

Implementers 1

muxhttp/mux.go

Calls

no outgoing calls

Tested by 9

TestMiddlewaresFunction · 0.76
TestVarsFunction · 0.76
TestRequestPatternFunction · 0.76
TestResolvePatternFunction · 0.76
TestSmartRedirectSlashesFunction · 0.76
TestMiddlewareFunction · 0.52
TestRequestIDFunction · 0.52
TestMiddlewareFunction · 0.52