Sign in Join
FPDoc Onlineexperiment

TRedirectEvent procedure type

In unit fpHTTPClient

Event type for handling HTTP redirects

Declaration

pascal
TRedirectEvent = procedure(Sender: TObject; const ASrc: string; 
 var ADest: string) of object

Arguments

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.