Gets the best matching route for path and method
Source position: httproute.pp line 271
public function THTTPRouter.GetHTTPRoute( |
const Path: string; |
AMethod: TRouteMethod; |
Params: TStrings |
):THTTPRoute; |
Path |
|
Request path to match |
AMethod |
|
HTTP method to match |
Params |
|
String list to store extracted parameters |
Best matching route or nil
GetHTTPRoute finds the best route that matches the specified path and method. It prioritizes exact matches over default routes and extracts path parameters.