Documentation

RequestHttp
in package

Request http utils class.

Table of Contents

$connectTimeout  : int
$timeout  : int
getClient()  : Client
Get GuzzleHttp client instance.
getOptions()  : array<string|int, mixed>
Get default configuration for GuzzleHttp Client.
getSoapOptions()  : array<string|int, mixed>
Get default configuration for SoapClient.

Properties

$connectTimeout

public static int $connectTimeout = 2

The number of seconds to wait while trying to connect to a server. Use 0 to wait indefinitely (the default behavior).

$timeout

public static int $timeout = 10

Total timeout of the request in seconds. Use 0 to wait indefinitely (the default behavior).

Methods

getClient()

Get GuzzleHttp client instance.

public static getClient([array<string|int, mixed> $config = [] ]) : Client
Parameters
$config : array<string|int, mixed> = []
Return values
Client

getOptions()

Get default configuration for GuzzleHttp Client.

public static getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSoapOptions()

Get default configuration for SoapClient.

public static getSoapOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

        

Search results