# observe\_dispatch/2

Source: https://zotonic.com/docs/2156/observe_dispatch-2

URI: https://zotonic.com/id/2156

Language: en



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](/id/doc_developerguide_notifications#notification-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`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2156?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2156?language=en>)
