Unit 'fphttpserver' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl-web]

TFPHTTPConnection

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: fphttpserver.pp line 63

type TFPHTTPConnection = class(TObject)

protected

  procedure AllocateConnectionID;

  procedure ReadRequestContent(); virtual;

  procedure UnknownHeader(); virtual;

  procedure HandleRequestError(); virtual;

  procedure HandleUnexpectedError(); virtual;

  procedure SetupSocket; virtual;

  procedure SetBusy;

  procedure DoHandleRequest; virtual;

  procedure DoKeepConnectionIdle; virtual;

  function ReadRequestHeaders;

  function AllowNewRequest;

  function RequestPending;

  property Busy: Boolean; [r]

  property KeepConnections: Boolean; [r]

  property KeepConnectionIdleTimeout: Integer; [r]

  property KeepConnectionTimeout: Integer; [r]

public

type

  TConnectionIDAllocator = procedure(

  out aID: string

) of object;

public

  IDAllocator: TConnectionIDAllocator;

  constructor Create();

  destructor Destroy; override;

  procedure HandleRequest;

  property ConnectionID: string; [r]

  property Socket: TSocketStream; [r]

  property Server: TFPCustomHttpServer; [r]

  property OnRequestError: TRequestErrorHandler; [rw]

  property OnUnexpectedError: TRequestErrorHandler; [rw]

  property LookupHostNames: Boolean; [r]

  property KeepAlive: Boolean; [r]

  property IsUpgraded: Boolean; [r]

end;

Inheritance

TFPHTTPConnection

|

TObject


Documentation generated on: 2023-03-18