Sign in Join
FPDoc Onlineexperiment

THTTPRoute.MatchPattern function

Member of THTTPRoutepublicIn unit HTTPRoute

Matches URL pattern against request path

Declaration

pascal
function MatchPattern(const Path: string; L: TStrings; 
 Options: TRouteOptions): Boolean

Arguments

Path

Request path to match

L

String list to store extracted parameters

Options

Matching options to apply

Function result

True if pattern matches the path

Description

MatchPattern performs pattern matching between the route's URL pattern and an incoming request path. It supports parameterized routes and extracts path parameters.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.