System.Net.HttpClient.THTTPClient.OnRedirect
Delphi
property OnRedirect: THTTPRedirectEvent read FOnRedirect write FOnRedirect;
C++
__property THTTPRedirectEvent OnRedirect = {read=FOnRedirect, write=FOnRedirect};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | System.Net.HttpClient.pas System.Net.HTTPClient.hpp |
System.Net.HttpClient | THTTPClient |
Description
Event fired when the HTTP response will lead to a redirect.
OnRedirect is enabled when HandleRedirects value is True
and the number of redirects is less than (or equal to) MaxRedirects.
When AAllow
is set to False
, the redirection will be terminated.