HTTP method paired with a typed path pattern. The primary constructor is Method.GET / "users" / PathCodec.int("id"). Use alternatives to expand orElse branches, RoutePattern.any(Method) or RoutePattern.any for catch-all trailing routes, and nest to prepend a path prefix.
Attributes
- Companion
- object
- Source
- RoutePattern.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Source
- RoutePattern.scala
Expands orElse branches and multi-method patterns into one pattern per (method, path) pair for routing-trie insertion. The fan-out is intentional — the trie is keyed by method first, so each method needs its own copy — and identical copies (for example a method listed twice) are removed.
Expands orElse branches and multi-method patterns into one pattern per (method, path) pair for routing-trie insertion. The fan-out is intentional — the trie is keyed by method first, so each method needs its own copy — and identical copies (for example a method listed twice) are removed.
Attributes
- Source
- RoutePattern.scala
Attributes
- Source
- RoutePattern.scala
Attributes
- Source
- RoutePattern.scala
Attributes
- Source
- RoutePattern.scala
Boolean fast path: equivalent to decode(actual, path).isRight without building any decoded values or candidate lists (see PathCodecRuntime.matchesCodec).
Boolean fast path: equivalent to decode(actual, path).isRight without building any decoded values or candidate lists (see PathCodecRuntime.matchesCodec).
Attributes
- Source
- RoutePattern.scala
Attributes
- Source
- RoutePattern.scala
Attributes
- Source
- RoutePattern.scala
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
- Source
- Product.scala