observe_dispatch_rewrite/3

Rewrite a URL before it will be dispatched using the z_sites_dispatcher

Type:

foldl

Return:

#dispatch_rewrite{} properties:

  • is_dir: boolean

  • path: binary

  • host: unknown

Edit on GitHub

observe_dispatch_host/2 Dispatch notifications observe_page_url/2

Referred by

Dispatch rules

Dispatch rules route incoming requests to controllers.