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

THTTPRoute

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base HTTP route class

Declaration

Source position: httproute.pp line 52

type THTTPRoute = class(TCollectionItem)

public

  destructor Destroy; override;

  

Destroys the HTTP route instance

  class function NormalizeRoute();

  

Normalizes a route pattern string

  procedure HandleRequest();

  

Handles an HTTP request

  function Matches();

  

Checks if route matches pattern and method

  function MatchPattern();

  

Matches URL pattern against request path

  function MatchMethod();

  

Checks if route matches HTTP method

published

  property Default: Boolean; [rw]

  

Indicates if this is a default route

  property URLPattern: string; [rw]

  

URL pattern for route matching

  property Method: TRouteMethod; [rw]

  

HTTP method handled by this route

end;

Inheritance

THTTPRoute

  

Base HTTP route class

|

TCollectionItem

|

TPersistent

|

TObject,IFPObserved

Description

THTTPRoute is the base class for all HTTP routes in the routing system. It provides pattern matching functionality and request handling infrastructure for specific route implementations.

See also

THTTPRouter

  

HTTP request router class

TRouteMethod

  

HTTP method enumeration for routing

TRouteOptions

  

Set of route matching options


Documentation generated on: Jan 27 2026