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

Method Handler

internal/server/server.go:2918–2921  ·  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

2916// Handler returns the configured HTTP handler (router).
2917// Useful for testing with httptest.NewServer.
2918func (s *Server) Handler() http.Handler {
2919 s.ensureRouter()
2920 return s.router
2921}
2922
2923// --- helpers ---
2924

Calls 1

ensureRouterMethod · 0.95