THTTPRouter class
HTTP request router class
Declaration
THTTPRouter = class(TComponent)Inheritance
- THTTPRouter
- TComponent
- TPersistent
- TObject
Description
THTTPRouter provides HTTP request routing functionality for web applications.
It manages a collection of routes and matches incoming HTTP requests to appropriate handlers
based on URL patterns and HTTP methods.
Properties
Routes | public | Provides indexed access to routes |
RouteCount | public | Returns the number of registered routes |
BeforeRequest | public | Event triggered before processing requests |
AfterRequest | public | Event triggered after processing requests |
RouteOptions | public | Global options for route matching |
Methods
Lock | protected | |
Unlock | protected | |
CreateHTTPRoute | protected | |
CreateRouteList | protected | |
CreateInterceptorList | protected | |
CheckDuplicate | protected | |
DoRouteRequest | protected | |
GetRequestPath | protected | |
Create | public | Creates a new HTTP router instance |
Destroy | public | Destroys the HTTP router instance |
FindDefaultRoute | public | Finds the default route for a method |
DeleteRoute | public | Removes a route from the collection |
DeleteRouteByID | public | Removes a route by its ID |
SanitizeRoute | public | Sanitizes a route path string |
Service | public | Returns the global router service instance |
ServiceClass | public | Returns the router service class |
SetServiceClass | public | Sets the router service class |
StringToRouteMethod | public | Converts string to route method enumeration |
RegisterInterceptor | public | Registers a request interceptor |
UnRegisterInterceptor | public | Removes a request interceptor |
RegisterRoute | public | Registers a new route with the router |
FindHTTPRoute | public | Finds a route matching path and method |
GetHTTPRoute | public | Gets the best matching route for path and method |
RouteRequest | public | Routes an HTTP request to appropriate handler |
MoveRouteBeforeDefault | public | Moves route before default routes |
MoveRouteBefore | public | Moves one route before another |
Inherited
From TComponent (74)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (5)
Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (37)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
