Sign in Join
FPDoc Onlineexperiment

TFPHTTPClient class

In unit fpHTTPClient

Full-featured HTTP client with published properties

Declaration

pascal
TFPHTTPClient = class(TFPCustomHTTPClient)

Inheritance

  1. TFPHTTPClient
  2. TFPCustomHTTPClient
  3. TComponent
  4. TPersistent
  5. TObject

Description

TFPHTTPClient is the complete HTTP client implementation that publishes all properties from TFPCustomHTTPClient. This class is intended for use in visual design environments and provides access to all HTTP client functionality through published properties.

See also

Properties

ResponseCookiespublicCookies received from the server in the last response
KeepConnectionpublishedWhether to keep the connection alive between requests
ConnectedpublishedIndicates whether a connection is currently active
IOTimeoutpublishedTimeout for data transfer operations in milliseconds
ConnectTimeoutpublishedTimeout for connection establishment in milliseconds
RequestCookiespublishedCookies to send with requests
RequestHeaderspublishedHTTP headers to send with requests
RequestBodypublishedThe request body content for POST/PUT requests
ResponseHeaderspublishedHTTP headers received from server responses
HTTPversionpublishedThe HTTP protocol version to use for requests
ServerHTTPVersionpublishedThe HTTP protocol version used by the server in the last response
ResponseStatusCodepublishedHTTP status code from the last response
ResponseStatusTextpublishedHTTP status text from the last response
CookiespublishedCookie jar for automatic cookie management
AllowRedirectpublishedWhether to automatically follow HTTP redirects
MaxRedirectspublishedMaximum number of redirects to follow automatically
UserNamepublishedUsername for HTTP authentication
PasswordpublishedPassword for HTTP authentication
ProxypublishedProxy server configuration
VerifySSLCertificatepublishedWhether to verify SSL certificates
CertCAFileNamepublishedPath to Certificate Authority file for SSL verification
TrustedCertsDirpublishedDirectory containing trusted certificate files
AfterSocketHandlerCreatepublishedEvent called after socket handler creation

Events

OnRedirectpublishedEvent called when a redirect is encountered
OnPasswordpublishedEvent called when authentication is required
OnDataReceivedpublishedEvent called during data reception to track progress
OnDataSentpublishedEvent called during data transmission to track progress
OnHeaderspublishedEvent called when response headers are received
OnGetSocketHandlerpublishedEvent called to provide custom socket handlers
OnVerifySSLCertificatepublishedEvent called for custom SSL certificate verification
OnEventStreampublishedEvent called when a Server-Sent Events stream is established

Inherited

From TFPCustomHTTPClient (71)

AddHeader AllowHeader CheckHeader CheckResponseCode ConnectToServer Create CreateEventSource CreateProxyData Delete Destroy DisconnectFromServer DoDataRead DoDataWrite DoKeepConnectionRequest DoMethod DoNormalRequest DoVerifyCertificate ExtractBuffer ExtractSocket FileFormPost FormPost Get GetEventSource GetHeader GetServerURL GetSocketHandler HandlesEventstream HasConnectionClose Head HTTPMethod IndexOfHeader IsConnected IsRedirect KeepConnectionReconnectLimit MaxChunkSize MaxHeaderCount MaxHeaderLineLength MaxResponseSize NoContentAllowed Options ParseStatusLine Patch Post ProtocolSupported ProxyActive Put ReadFromSocket ReadResponse ReadResponseHeaders ReadString ReconnectToServer RedirectForcesGET SendRequest SimpleDelete SimpleFileFormPost SimpleFormPost SimpleGet SimpleOptions SimplePatch SimplePost SimplePut SimpleQuote Socket StartEventStream StreamFormPost Terminate Terminated UnixSocketPath WriteRequestBody WriteString WriteToSocket

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

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