TRedirectEvent¶
Event type for handling HTTP redirects
Declaration¶
Source position: fphttpclient.pp line 42
type
TRedirectEvent = procedure(Sender: TObject; const ASrc: string;
var ADest: string) of object;Arguments¶
| Name | Description |
|---|---|
| Sender | The HTTP client object that triggered the event |
| ASrc | The original URL that caused the redirect |
| ADest | The destination URL for the redirect (can be modified) |
Description¶
Event type called when an HTTP redirect is encountered. The event handler can modify the destination URL or prevent the redirect.
See also¶
| Name | Description |
|---|---|
| TFPHTTPClient.OnRedirect | Event called when a redirect is encountered |