observe_dispatch/2

Final try for dispatch, try to match the request. Called when the site is known, but no match is found for the path

Type:

first

Return:

{ok, RscId::integer()}, {ok, #dispatch_match{}}, {ok, #dispatch_redirect{}} or undefined

#dispatch{} properties:

  • host: binary

  • path: binary

  • method: binary

  • protocol: union

  • tracer_pid: union

Edit on GitHub

observe_content_types_dispatch/3 Dispatch notifications observe_dispatch_host/2

Referred by

Dispatch rules

Dispatch rules route incoming requests to controllers.