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

Method Handler

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

3009// Handler returns the configured HTTP handler (router).
3010// Useful for testing with httptest.NewServer.
3011func (s *Server) Handler() http.Handler {
3012 s.ensureRouter()
3013 return s.router
3014}
3015
3016// --- helpers ---
3017

Calls 1

ensureRouterMethod · 0.95