System.Net.HttpClientComponent.TNetHTTPClient.OnRedirect
Delphi
property OnRedirect: THTTPRedirectEvent read FOnRedirect write SetOnRedirect;
C++
__property System::Net::Httpclient::THTTPRedirectEvent OnRedirect = {read=FOnRedirect, write=SetOnRedirect};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | System.Net.HTTPClientComponent.pas System.Net.HTTPClientComponent.hpp |
System.Net.HttpClientComponent | TNetHTTPClient |
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.