System.Net.HttpClient.THTTPClient.Initializer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Initializer;

C++

void __fastcall Initializer();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Net.HttpClient.pas
System.Net.HTTPClient.hpp
System.Net.HttpClient THTTPClient

Description

Creates an instance of THTTPClient. The Initializer functionality is the same as the THTTPClient.Create constructor.

Call the Initializer function to avoid run-time collisions with the Create constructor.

Initializer sets FMaxRedirects to 5 (the default maximum redirects allowed), creates a CookieManager and sets the FAllowCookies value to True.

See Also