Class TBrookHTTPServer
Unit
Declaration
type TBrookHTTPServer = class(TBrookHandledComponent)
Description
Fast event-driven HTTP(S) server class.
Hierarchy
- TObject
- TPersistent
- TComponent
- TBrookHandledComponent
- TBrookHTTPServer
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Open; |
|
procedure Close; |
Properties
property MHDHandle: Pointer read GetMHDHandle; |
|
property Active: Boolean read FActive write SetActive stored IsActiveStored; |
|
property Authenticated: Boolean read FAuthenticated write SetAuthenticated
stored IsAuthenticatedStored; |
|
property HostName: string read FHostName write SetHostName
stored IsHostNameStored; |
|
property Port: UInt16 read GetPort write SetPort stored IsPortStored
default 0; |
|
property Backlog: Word read FBacklog write SetBacklog stored IsBacklogStored
default BROOK_BACKLOG; |
|
property Threaded: Boolean read GetThreaded write SetThreaded
stored IsThreadedStored default False; |
|
property UploadsDir: string read GetUploadsDir write SetUploadsDir
stored IsUploadsDirStored; |
|
property PostBufferSize: NativeUInt read GetPostBufferSize
write SetPostBufferSize stored IsPostBufferSizeStored
default BROOK_POST_BUFFER_SIZE; |
|
property PayloadLimit: NativeUInt read GetPayloadLimit write SetPayloadLimit
stored IsPayloadLimitStored default BROOK_PAYLOAD_LIMIT; |
|
property UploadsLimit: UInt64 read GetUploadsLimit write SetUploadsLimit
stored IsUploadsLimitStored default BROOK_UPLOADS_LIMIT; |
|
property ThreadPoolSize: Cardinal read GetThreadPoolSize
write SetThreadPoolSize stored IsThreadPoolSizeStored default 0; |
|
property ConnectionTimeout: Cardinal read GetConnectionTimeout
write SetConnectionTimeout stored IsConnectionTimeoutStored default 0; |
|
property ConnectionLimit: Cardinal read GetConnectionLimit
write SetConnectionLimit stored IsConnectionLimitStored default 0; |
|
property NoFavicon: Boolean read FNoFavicon write FNoFavicon
stored IsNoFaviconStored default False; |
|
property Security: TBrookHTTPServerSecurity read FSecurity
write SetSecurity; |
|
property OnAuthenticate: TBrookHTTPAuthenticateEvent read FOnAuthenticate
write FOnAuthenticate; |
|
property OnAuthenticateError: TBrookHTTPAuthenticateErrorEvent
read FOnAuthenticateError write FOnAuthenticateError; |
|
property OnRequest: TBrookHTTPRequestEvent read FOnRequest write FOnRequest; |
|
property OnRequestError: TBrookHTTPRequestErrorEvent read FOnRequestError
write FOnRequestError; |
|
property OnClientConnection: TBrookHTTPServerClientConnectionEvent
read FOnClientConnection write FOnClientConnection; |
|
property OnError: TBrookErrorEvent read FOnError write FOnError; |
|
property OnStart: TNotifyEvent read FOnStart write FOnStart; |
|
property OnStop: TNotifyEvent read FOnStop write FOnStop; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
Creates an instance of Parameters
|
destructor Destroy; override; |
|
Destroys an instance of |
procedure Open; |
|
Starts the HTTP(S) server. |
procedure Close; |
|
Stops the HTTP(S) server. |
Properties
property MHDHandle: Pointer read GetMHDHandle; |
|
Contains the MHD instance. |
property Active: Boolean read FActive write SetActive stored IsActiveStored; |
|
Activates the HTTP(S) server. |
property Authenticated: Boolean read FAuthenticated write SetAuthenticated
stored IsAuthenticatedStored; |
|
Enables/disables the basic HTTP authentication. |
property HostName: string read FHostName write SetHostName
stored IsHostNameStored; |
|
Host name for listening to connections. |
property Port: UInt16 read GetPort write SetPort stored IsPortStored
default 0; |
|
|
property Backlog: Word read FBacklog write SetBacklog stored IsBacklogStored
default BROOK_BACKLOG; |
|
Maximum length of the queue of pending connections. Default: 511. |
property Threaded: Boolean read GetThreaded write SetThreaded
stored IsThreadedStored default False; |
|
Enables/disables the |
property UploadsDir: string read GetUploadsDir write SetUploadsDir
stored IsUploadsDirStored; |
|
Directory to store the uploaded files. |
property PostBufferSize: NativeUInt read GetPostBufferSize
write SetPostBufferSize stored IsPostBufferSizeStored
default BROOK_POST_BUFFER_SIZE; |
|
Post buffering size. |
property PayloadLimit: NativeUInt read GetPayloadLimit write SetPayloadLimit
stored IsPayloadLimitStored default BROOK_PAYLOAD_LIMIT; |
|
Total payload limit. Use zero for no limit. |
property UploadsLimit: UInt64 read GetUploadsLimit write SetUploadsLimit
stored IsUploadsLimitStored default BROOK_UPLOADS_LIMIT; |
|
Total uploads limit. Use zero for no limit. |
property ThreadPoolSize: Cardinal read GetThreadPoolSize
write SetThreadPoolSize stored IsThreadPoolSizeStored default 0; |
|
Thread pool size. Size greater than 1 enables the thread pooling. |
property ConnectionTimeout: Cardinal read GetConnectionTimeout
write SetConnectionTimeout stored IsConnectionTimeoutStored default 0; |
|
Inactivity time (in seconds) to a client get time out. |
property ConnectionLimit: Cardinal read GetConnectionLimit
write SetConnectionLimit stored IsConnectionLimitStored default 0; |
|
Concurrent connections limit. Use zero for no limit. |
property Security: TBrookHTTPServerSecurity read FSecurity
write SetSecurity; |
|
Holds the TLS properties for the HTTPS server. |
property OnAuthenticate: TBrookHTTPAuthenticateEvent read FOnAuthenticate
write FOnAuthenticate; |
|
Event triggered when a client requests authentication. |
property OnAuthenticateError: TBrookHTTPAuthenticateErrorEvent
read FOnAuthenticateError write FOnAuthenticateError; |
|
Event triggered when a client authentication raises errors. |
property OnRequest: TBrookHTTPRequestEvent read FOnRequest write FOnRequest; |
|
Event triggered when a client requests a content. |
property OnRequestError: TBrookHTTPRequestErrorEvent read FOnRequestError
write FOnRequestError; |
|
Event triggered when a client request raises errors. |
property OnClientConnection: TBrookHTTPServerClientConnectionEvent
read FOnClientConnection write FOnClientConnection; |
|
Event triggered when a client connects to or disconnects from the server. |
property OnError: TBrookErrorEvent read FOnError write FOnError; |
|
Event triggered when the HTTP server raises errors. |
property OnStart: TNotifyEvent read FOnStart write FOnStart; |
|
Event triggered when the HTTP server starts successfully. |
property OnStop: TNotifyEvent read FOnStop write FOnStop; |
|
Event triggered when the HTTP server stops successfully. |
Generated by PasDoc 0.16.0.