Handler returns the underlying chi.Router for testing purposes.
()
| 332 | |
| 333 | // Handler returns the underlying chi.Router for testing purposes. |
| 334 | func (s *Server) Handler() http.Handler { |
| 335 | return s.router |
| 336 | } |
| 337 | |
| 338 | // hostAuthorizationMiddleware enforces that the request Host header matches one of the allowed |
| 339 | // hosts, ignoring any port in the comparison. If allowedHosts is empty, all hosts are allowed. |
no outgoing calls