MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / ServeHTTP

Method ServeHTTP

pkg/web/web.go:320–322  ·  view source on GitHub ↗

ServeHTTP implements http.Handler.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

318
319// ServeHTTP implements http.Handler.
320func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
321 s.root.ServeHTTP(w, r)
322}
323
324// RootRouter returns the root router.
325// In most cases the Router() should be used instead of the root router.

Callers 15

AuthorizeMethod · 0.45
RegisterRoutesMethod · 0.45
redirectToLoginMethod · 0.45
TestCSRFFunction · 0.45
RedirectFunction · 0.45
TestProxyHeadersFunction · 0.45
NoCacheFunction · 0.45
TestLogFunction · 0.45
RequestURLFunction · 0.45
HSTSHeadersFunction · 0.45
TestChainFunction · 0.45
TestConditionalFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestCSRFFunction · 0.36
TestProxyHeadersFunction · 0.36
TestLogFunction · 0.36
TestChainFunction · 0.36
TestConditionalFunction · 0.36
TestBasicAuthFunction · 0.36
TestRedirectFunction · 0.36
TestMaxBodyFunction · 0.36
TestCookiesFunction · 0.36
TestNamespaceFunction · 0.36
TestMetadataFunction · 0.36
TestPeerFunction · 0.36