Documentation

CurlDownloader
in package

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

$exceptions  : mixed
$jobs  : mixed
$multiHandle  : mixed
$options  : mixed
$shareHandle  : mixed
$timeInfo  : mixed
__construct()  : mixed
get()  : mixed
finishProgress()  : mixed
onProgress()  : mixed

Properties

$options

private static mixed $options = ['http' => ['method' => CURLOPT_CUSTOMREQUEST, 'content' => CURLOPT_POSTFIELDS], 'ssl' => ['cafile' => CURLOPT_CAINFO, 'capath' => CURLOPT_CAPATH]]

$timeInfo

private static mixed $timeInfo = ['total_time' => true, 'namelookup_time' => true, 'connect_time' => true, 'pretransfer_time' => true, 'starttransfer_time' => true, 'redirect_time' => true]

Methods

__construct()

public __construct() : mixed
Return values
mixed

get()

public get(mixed $origin, mixed $url, mixed $context, mixed $file) : mixed
Parameters
$origin : mixed
$url : mixed
$context : mixed
$file : mixed
Return values
mixed

finishProgress()

private finishProgress(mixed $ch, callable $notify, array<string|int, mixed> $progress) : mixed
Parameters
$ch : mixed
$notify : callable
$progress : array<string|int, mixed>
Return values
mixed

onProgress()

private onProgress(mixed $ch, callable $notify, array<string|int, mixed> $progress, array<string|int, mixed> $previousProgress) : mixed
Parameters
$ch : mixed
$notify : callable
$progress : array<string|int, mixed>
$previousProgress : array<string|int, mixed>
Return values
mixed

Search results