Unit 'httproute' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

THTTPRouter.GetHTTPRoute

Gets the best matching route for path and method

Declaration

Source position: httproute.pp line 216

public function THTTPRouter.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.


Documentation generated on: Aug 28 2026 Report a problem on this page