Sign in Join
FPDoc Onlineexperiment

THTTPRouter.GetHTTPRoute function

Member of THTTPRouterpublicIn unit HTTPRoute

Gets the best matching route for path and method

Declaration

pascal
function GetHTTPRoute(const Path: string; AMethod: TRouteMethod; 
 Params: TStrings): THTTPRoute

Arguments

Path

Request path to match

AMethod

HTTP method to match

Params

String list to store extracted parameters

Function result

Best matching route or nil

Description

GetHTTPRoute finds the best route that matches the specified path and method. It prioritizes exact matches over default routes and extracts path parameters.

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