MCPcopy
hub / github.com/gofiber/fiber / domainRouter

Struct domainRouter

domain.go:262–266  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.
262type 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.
269var _ Router = (*domainRouter)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected