phasync
CurlResponse / getDownloadSize

Method

CurlResponse::getDownloadSize

Return the number of bytes cURL expects to download, or null before cURL has reported it.

Description#

public CurlResponse::getDownloadSize(): ?int

Unknown sizes are reported by cURL as 0.

Return values#

?int

See also#