Web.HTTPApp.TWebResponse.ContentLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ContentLength: Int64 index 0 read GetIntegerVariable write SetIntegerVariable;

C++

__property __int64 ContentLength = {read=GetIntegerVariable, write=SetIntegerVariable, index=0};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebResponse

Description

Specifies the length, in bytes, of the Content property.

Set ContentLength to the length of the Content property, if it is known. If the length of the Content property is unknown, or if the response message does not include any content, set ContentLength to 0. Web clients use the ContentLength when reading the contents of the HTTP response message.

If the contents of the response message are taken from a stream, the value of ContentLength is set from the stream.

See Also