Sign in Join
FPDoc Onlineexperiment

TGetSocketHandlerEvent procedure type

In unit fpHTTPClient

Event type for providing custom socket handlers

Declaration

pascal
TGetSocketHandlerEvent = procedure(Sender: TObject; 
 const UseSSL: Boolean; 
 out AHandler: TSocketHandler)
 of object

Arguments

Sender

The HTTP client object that triggered the event

UseSSLTrue if SSL/TLS connection is required
AHandler

The socket handler to use for the connection

Description

Event type called to allow custom socket handler creation. This enables the use of custom SSL implementations or socket configurations.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.