Documentation

Client
in package

Table of Contents

Properties

$callback  : callable
$headers  : array<string|int, string>

Methods

getClient()  : HttpClientInterface
getOptions()  : HttpOptions
Get HTTP Options
progress()  : void
Progress normalized for cURL and Fopen Accepts a variable length of arguments passed in by stream method

Properties

$callback

public static callable $callback = null

The callback for the progress, either a function or callback in array notation

$headers

private static array<string|int, string> $headers = ['User-Agent' => 'Grav CMS']

Methods

getClient()

public static getClient([array<string|int, mixed> $overrides = [] ][, int $connections = 6 ][, callable $callback = null ]) : HttpClientInterface
Parameters
$overrides : array<string|int, mixed> = []
$connections : int = 6
$callback : callable = null
Return values
HttpClientInterface

getOptions()

Get HTTP Options

public static getOptions() : HttpOptions
Return values
HttpOptions

progress()

Progress normalized for cURL and Fopen Accepts a variable length of arguments passed in by stream method

public static progress(int $bytes_transferred, int $filesize, array<string|int, mixed> $info) : void
Parameters
$bytes_transferred : int
$filesize : int
$info : array<string|int, mixed>

        
On this page

Search results