Internet Direct (Indy)
|
Constructor for the object instance.
constructor Create( AConnection: TIdTCPConnection; AServer: TIdCustomHTTPServer ); reintroduce;
Parameters |
Description |
AConnection |
The server connection for the HTTP response. |
AServer |
The TIdCustomHTTPServer for the HTTP session generating the response. |
Create is the reintroduced constructor for the TIdHTTPResponseInfo object. Create is responsible for initializing the default values for properties in the instance.
Create calls the inherited Create method.
Create sets ContentLength to the value specified in GFContentLength, and ContentType to the value in GContentType. The RawHeaders property is updated to avoid folding long lines for clients that may not support the feature. ServerSoftware is initialized to the values specified in GServerSoftware.
Create sets the connection used for the HTTP response to the TIdTCPServerConnection instance referenced in AConnection, and assigns to ResponseNo the default value from GResponseNo.
Create also allocates resources needed for the Cookies property.
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |