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