Declaration¶
Source position: fphttp.pp line 65
type
TCustomWebAction = class(TCollectionItem)
public
function GetNamePath : string;
published
property Name: string; {rw}
property ContentProducer: THTTPContentProducer; {rw}
property Default: Boolean; {rw}
property BeforeRequest: TRequestEvent; {rw}
property AfterResponse: TResponseEvent; {rw}
end;
Inheritance¶
Description¶
TCustomWebAction represents an individual web action that can handle specific HTTP requests. It associates a content producer or a simple event with request handling events. Web actions are selected by the TCustomHTTPModule module by checking the second path element in the HTTP URL:
{BaseURL}/module/action
Properties¶
| Member | Visibility | Description |
|---|---|---|
| AfterResponse | published | Event triggered after response generation |
| BeforeRequest | published | Event triggered before request processing |
| ContentProducer | published | Content producer for this action |
| Default | published | Indicates if this is the default action |
| Name | published | Name of the web action |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| GetNamePath | public | Returns the action name path |