Sign in Join
FPDoc Onlineexperiment

THTTPRouter.FindDefaultRoute function

Member of THTTPRouterpublicIn unit HTTPRoute

Finds the default route for a method

Declaration

pascal
function FindDefaultRoute(AMethod: TRouteMethod): THTTPRoute

Arguments

AMethod

HTTP method to find default route for

Function result

Default route for the method or nil

Description

FindDefaultRoute searches for the default route that handles the specified HTTP method. It returns the first route marked as default for the given method.

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