Finds a route matching path and method
Source position: httproute.pp line 270
public function THTTPRouter.FindHTTPRoute( |
const Path: string; |
AMethod: TRouteMethod; |
Params: TStrings; |
out MethodMismatch: Boolean |
):THTTPRoute; |
Path |
|
Request path to match |
AMethod |
|
HTTP method to match |
Params |
|
String list to store extracted parameters |
MethodMismatch |
|
Returns True if pattern matched but method didn't |
Matching route or nil if not found
FindHTTPRoute searches for a route that matches the specified path and HTTP method. It extracts parameters and provides information about method mismatches.