System.Net.URLClient.TProxySettings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TProxySettings = record
  private
    FHost: string;
    FPort: Integer;
    FScheme: string;
    FUserName: string;
    FPassword: string;
    FCredential: TCredentialsStorage.TCredential;
    function GetCredential: TCredentialsStorage.TCredential;
  public
    constructor Create(const AURL: string); overload;
    constructor Create(const AHost: string; APort: Integer; const AUserName: string = ''; const APassword: string = ''; const AScheme: string = ''); overload;
    property Host: string read FHost write FHost;
    property Port: Integer read FPort write FPort;
    property Scheme: string read FScheme write FScheme;
    property UserName: string read FUserName write FUserName;
    property Password: string read FPassword write FPassword;
    property Credential: TCredentialsStorage.TCredential read GetCredential;
  end;

C++

struct DECLSPEC_DRECORD TProxySettings
{
private:
    System::UnicodeString FHost;
    int FPort;
    System::UnicodeString FScheme;
    System::UnicodeString FUserName;
    System::UnicodeString FPassword;
    TCredentialsStorage::TCredential FCredential;
    TCredentialsStorage::TCredential __fastcall GetCredential();
public:
    __fastcall TProxySettings(const System::UnicodeString AURL)/* overload */;
    __fastcall TProxySettings(const System::UnicodeString AHost, int APort, const System::UnicodeString AUserName, const System::UnicodeString APassword, const System::UnicodeString AScheme)/* overload */;
    __property System::UnicodeString Host = {read=FHost, write=FHost};
    __property int Port = {read=FPort, write=FPort};
    __property System::UnicodeString Scheme = {read=FScheme, write=FScheme};
    __property System::UnicodeString UserName = {read=FUserName, write=FUserName};
    __property System::UnicodeString Password = {read=FPassword, write=FPassword};
    __property TCredentialsStorage::TCredential Credential = {read=GetCredential};
    TProxySettings() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.Net.URLClient.pas
System.Net.URLClient.hpp
System.Net.URLClient System.Net.URLClient

Description

TProxySettings is a record type with the proxy settings which the URLClient uses.

To use TProxySettings, define the following arguments:

  • Host used as proxy.
  • Communication Port to the proxy.
  • URI Scheme to be used with the proxy, eg. HTTP or HTTPS.
  • The proxy’s UserName and Password.
  • Credential information, constructed with ProxySettings.

See Also