FileAndResourceDirectives
Like the RouteDirectives the FileAndResourceDirectives
FileAndResourceDirectives
are somewhat special in pekko-http’s routing DSL. Most other directives wrap an inner route and are therefore used as inner nodes of the route tree. These directives, instead, are indeed instance of Route
Route
, i.e. leaves of the route tree that handle a request themselves without passing it on to an inner route.
So in most cases the inner-most element of a route structure branch is one of the RouteDirectives or FileAndResourceDirectives
FileAndResourceDirectives
.
1.0.1