Version: 4.0.2
5.10 Virtual Hosts
The web-server/dispatchers/dispatch-host module defines a dispatcher constructor that calls a different dispatcher based upon the host requested.
(make lookup-dispatcher) → dispatcher? |
lookup-dispatcher : (symbol? . -> . dispatcher?) |
Extracts a host from the URL requested, or the Host HTTP header, calls lookup-dispatcher with the host, and invokes the returned dispatcher. If no host can be extracted, then 'none is used.