bynk.http.reserved_route_syntax
Error A route segment contains *, { or }, which are reserved for a future route form.
*, { and } are reserved in a route, both in a literal segment and in a :name parameter, for a future form that matches the rest of a path. Matched literally, such a segment would quietly change meaning when that form arrives, so it is refused now. To match a literal * or brace, take the segment as a :name parameter and check its value in the handler. A route that does not start with / is bynk.http.invalid_path.
Example
on GET("/files/*key") () -> Effect[HttpResult[String]] by v: Visitor { … } // ✗ `*` is reserved
on GET("/files/:key") (key: String) -> Effect[HttpResult[String]] by v: Visitor { … } // ✓In the Book
See also
- The grammar rule it governs:
http_handler. - Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.reserved_route_syntaxshows the same from the installed toolchain, without a network.