Table of Contents

THttpEngine Class

Abstract base class for platform-specific HTTP engines that create requests and send them to obtain responses.

Remarks

Each platform provides a concrete implementation (for example based on WinHTTP on Windows). Use CreateDefault to obtain the engine appropriate for the current platform, or assign CreateEngineFunc to supply a custom engine.

Syntax

Unit: Sparkle.Http.Engine

THttpEngine = class(TObject);

Constructors

Name Description
Create Creates the HTTP engine instance.

Methods

Name Description
CreateDefault Creates the default HTTP engine for the current platform.
CreateRequest Creates a new, empty THttpRequest suitable for this engine.
Send Sends the specified request and returns the response.

Properties

Name Description
CreateEngineFunc Gets or sets a factory function used by CreateDefault to build a custom engine.