Sign in Join
FPDoc Onlineexperiment

TEZcgi class

In unit EzCgi

Easy CGI class.

Declaration

pascal
TEZcgi = class(TObject)

Inheritance

  1. TEZcgi
  2. TObject

Description

TEZcgi implements all functionality to analyze the CGI environment and query the variables present in it. It's main use is the exposed variables.

Programs wishing to use this class should make a descendent class of this class and override the DoPost or DoGet methods. To run the program, an instance of this class must be created, and it's Run method should be invoked. This will analyze the environment and call the DoPost or DoGet method, depending on what HTTP method was used to invoke the program.

Properties

ValuespublicVariables passed to the CGI script.
NamespublicIndexed array with available variable names.
VariablespublicIndexed array with variables as name=value pairs.
VariableCountpublicNumber of available variables.
NamepublicName of the server administrator.
EmailpublicEmail of the server administrator.

Methods

OutputErrorprotected
CreatepublicCreates a new instance of the TEZCGI component.
DestroypublicRemoves the TEZCGI component from memory.
RunpublicRun the CGI application.
WriteContentpublicWrites the content type to standard output.
PutLinepublicSend a line of output to the web-client.
GetValuepublicReturn the value of a request variable.
DoPostpublicMethod to handle POST requests.
DoGetpublicMethod to handle GET requests.

Inherited

From TObject (40)

AfterConstruction BeforeDestruction 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 SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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