Web.HTTPApp.TWebActionItems.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  Add: TWebActionItem;

C++

HIDESBASE TWebActionItem* __fastcall Add();

Properties

Type Visibility Source Unit Parent
function public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebActionItems

Description

Adds a new action item to the end of the collection.

Call Add to add an action item to the collection of action items managed by the dispatcher. The new item is added to the end of the Items array. Add returns the action item so that its properties can be set to specify its use.

Because the dispatcher looks through the action items in order when it tries to find an action item to handle an HTTP request message, add any action items that preprocess HTTP requests first. Then add the most specific action items. This way, more general action items will not be matched to request messages before a closer match can be found.

See Also