MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Handler

Method Handler

internal/server/server.go:1779–1782  ·  view source on GitHub ↗

Handler returns the configured HTTP handler (router). Useful for testing with httptest.NewServer.

()

Source from the content-addressed store, hash-verified

1777// Handler returns the configured HTTP handler (router).
1778// Useful for testing with httptest.NewServer.
1779func (s *Server) Handler() http.Handler {
1780 s.ensureRouter()
1781 return s.router
1782}
1783
1784// --- helpers ---
1785

Callers 1

setupRouterMethod · 0.80

Calls 1

ensureRouterMethod · 0.95

Tested by

no test coverage detected