dispatch_host

Try to find the site for the request Called when the request Host doesn’t match any active site.

Type:
first
Return:
{ok, #dispatch_redirect{}} or undefined
#dispatch_host{} properties:
  • host: binary
  • path: binary
  • method: binary
  • protocol: union

Edit on GitHub

dispatch Dispatch notifications dispatch_rewrite

Referred by

Dispatch rules

Dispatch rules route incoming requests to controllers.