domainRouter implements [Router] for domain-filtered routing. It wraps an underlying [App] or [Group] and checks the request hostname against the domain pattern before executing handlers. Routes registered through a domainRouter have zero impact on routing performance for requests that don't use do
| 260 | // router changes; for now callers should be aware that 405 responses may |
| 261 | // include methods from domain-scoped routes whose host did not match. |
| 262 | type domainRouter struct { |
| 263 | app *App |
| 264 | group *Group // non-nil when created from a Group |
| 265 | matcher domainMatcher |
| 266 | } |
| 267 | |
| 268 | // Verify domainRouter implements Router at compile time. |
| 269 | var _ Router = (*domainRouter)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected