Sign in Join
FPDoc Onlineexperiment

THTTPRoute.Matches function

Member of THTTPRoutepublicIn unit HTTPRoute

Checks if route matches pattern and method

Declaration

pascal
function Matches(const APattern: string; AMethod: TRouteMethod; 
 Options: TRouteOptions): Boolean

Arguments

APattern

URL pattern to match against

AMethod

HTTP method to match against

Options

Route matching options to apply

Function result

True if route matches the criteria

Description

Matches determines whether this route matches the specified URL pattern and HTTP method. It combines pattern and method matching to determine route eligibility.

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