Declaration¶
Source position: fphttp.pp line 91
type
TCustomWebActions = class(TCollection)
public
constructor Create;
procedure Assign;
function Add : TCustomWebAction;
function ActionByName : TCustomWebAction;
function FindAction : TCustomWebAction;
function IndexOfAction : Integer;
property OnGetAction: TGetActionEvent; {rw}
property Actions[Index : Integer]: TCustomWebAction; {rw}
property DefActionWhenUnknown: Boolean; {rw}
end;
Inheritance¶
Description¶
TCustomWebActions manages a collection of web actions that can handle HTTP requests.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| Actions | public | Array access to web actions |
| DefActionWhenUnknown | public | Use default action for unknown requests |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| ActionByName | public | Finds action by name |
| Add | public | Adds a new web action |
| Assign | public | Copies actions from another collection |
| Create | public | Creates a new web actions collection |
| FindAction | public | Searches for action by name |
| IndexOfAction | public | Returns index of named action |
Events¶
| Member | Visibility | Description |
|---|---|---|
| OnGetAction | public | Event for action name determination |