path library

Jetleaf Path sub-library

This sub-library defines the path matching and pattern parsing facilities of the jetleaf_web package.

Importing package:jetleaf_web/path.dart provides APIs for representing, parsing, and matching URI path patterns, including path segments, parsed patterns, and match results.

These utilities are primarily used by the routing and handler mapping infrastructure but may also be used directly by framework extensions and advanced applications.

Classes

LiteralSegment
A literal path segment representing a fixed portion of a route pattern, such as "home", "api", or "v1".
PathMatch
Represents the result of matching a request path against a compiled PathPattern in JetLeaf.
PathPattern
Represents a compiled path pattern in JetLeaf that can be efficiently matched against incoming request paths.
PathPatternParser
Interface for parsing and matching path patterns in JetLeaf.
PathPatternParserConfig
Configuration options for the JetLeaf path pattern parser.
PathPatternParserRegistry
Registry interface for managing the PathPatternParser used by JetLeaf.
PathSegment
Represents a single segment of a parsed path pattern within JetLeaf’s routing system.
RegexSegment
A regex-based path segment used for advanced route matching in JetLeaf.
VariableSegment
A variable path segment representing a named placeholder in a route pattern, such as "{id}" or "{userId}".
WildcardSegment
A wildcard path segment used in route patterns to match one or multiple path components.