Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPResponseInfo.Create
Constructor for the object instance.

constructor Create(AConnection: TIdTCPServerConnection);
Parameters
AConnection: TIdTCPServerConnection
The server connection for the HTTP response.

Description
Create is the 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 not fold 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 resonse to the value referenced in AConnection, and ResponseNo uses the default value from GResponseNo.

Create also allocates resources needed for the Cookies property.