handler property

Handler get handler

The composed shelf handler.

Building it flattens the tree, which is where two routes claiming the same method and path are caught. Nothing earlier can catch them, since the full path only exists once everything is mounted.

The result is cached, and changing the tree afterwards throws instead of producing a handler that ignores the change.

Implementation

Handler get handler => internals.composed ??= composeHandler(this);