abstract class Client

Properties

bool $sslVerifyPeer
int $timeout

Methods

string|bool
get(string $url, array $options = [])

Execute a GET request and return the response's body

string|bool
post(string $url, array $options = [], string $body = '')

Execute a POST request and return the response's body

Details

at line 29
abstract string|bool get(string $url, array $options = [])

Execute a GET request and return the response's body

Parameters

string $url

Request URL

array $options

Request options

Return Value

string|bool

Response content or FALSE

at line 39
abstract string|bool post(string $url, array $options = [], string $body = '')

Execute a POST request and return the response's body

Parameters

string $url

Request URL

array $options

Request options

string $body

Request body

Return Value

string|bool

Response content or FALSE