MCPcopy Create free account
hub / github.com/coder/agentapi / Handler

Method Handler

lib/httpapi/server.go:334–336  ·  view source on GitHub ↗

Handler returns the underlying chi.Router for testing purposes.

()

Source from the content-addressed store, hash-verified

332
333// Handler returns the underlying chi.Router for testing purposes.
334func (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.

Calls

no outgoing calls