Daraja HTTP Framework 3.2.1-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
TdjHandlerList Class Reference

Iterates handler list and exits when the response code is set. More...

Inheritance diagram for TdjHandlerList:
TdjContextHandlerCollection

Public Member Functions

 TdjHandlerList ()
 Constructor.

Protected Member Functions

 Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response)

Detailed Description

Iterates handler list and exits when the response code is set.

If the response code is still -1, it returns 404

This extension of TdjHandlerCollection will call each contained handler in turn until either an exception is thrown or a positive response status is set.

Constructor & Destructor Documentation

◆ TdjHandlerList()

TdjHandlerList::TdjHandlerList ( )

Constructor.

Referenced by Handle().

Member Function Documentation

◆ Handle()

TdjHandlerList::Handle ( const string Target,
TdjServerContext Context,
TdjRequest Request,
TdjResponse Response )
protected

References TdjHandlerList().