provide

provide

Description

Provides a constant value to the inner route.

The provide directive is used as a building block for Custom Directives to provide a single value to the inner route.

See Providing Values to Inner Routes for an overview of similar directives.

Example

final Route route = providePrefixedStringRoute("test");

// tests:
testRoute(route).run(HttpRequest.GET("/"))
  .assertEntity("prefix:test");

Contents