Skip to content
Alice Zoë Bevan–McGregor edited this page Feb 16, 2023 · 1 revision

TBD / WIP

Dispatch Path

During the process of dispatch a "path" is built of each crumb yielded during the process.

The simplest application would be a root function, whose only path element will be that final endpoint.

An object dispatch application accessing a callable root class (one having a __call__ method) will present two crumbs when accessing the site root:

  • The root class.
  • The root instance invoked.

Resource dispatch follows the same pattern for instantiation (one crumb for the class, another crumb for the instance) of collections. If the root were a resource dispatch collection, and you were to access a resource below that collection, the path would consist of:

  • The root collection class.
  • The root collection instance.
  • The resource instance.
  • An appropriate verb method of that resource.