TsgcHTTP_API_AnthropicEigenschappen › TLSOptions

TLSOptions Eigenschap

Configureert de TLS/SSL-laag die wordt gebruikt voor HTTPS-verbindingen met de Anthropic API

Syntaxis

property TLSOptions: TsgcHTTPTLS_Options read GetTLSOptions
      write FTLSOptions;

Standaardwaarde

Opmerkingen

TLSOptions bepaalt welke TLS-bibliotheek (OpenSSL of SChannel), welke protocolversies en welk beleid voor certificaatvalidatie worden gebruikt bij het tot stand brengen van HTTPS-verbindingen met https://api.anthropic.com/v1. Het Anthropic-eindpunt vereist TLS 1.2 of hoger, dus laat de standaard staan, tenzij u een specifieke interoperabiliteitsbehoefte heeft. Aangepaste rootcertificaten of wederzijdse TLS kunnen hier ook worden geconfigureerd.

Voorbeeld

oAPI := TsgcHTTP_API_Anthropic.Create(nil);
oAPI.TLSOptions.OpenSSL_Options.APIVersion := oslAPI_1_1;
oAPI.TLSOptions.MinVersion := tls1_2;
oAPI.TLSOptions.VerifyCertificate := True;

Terug naar eigenschappen