Cached
class Cached extends Client
Properties
bool | $sslVerifyPeer | from Client | |
int | $timeout | from Client | |
Client | $client | ||
string | $cacheDir |
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
string
getCachedFilepath(array $vars)
Generate and return a filepath that matches given vars
string
getCacheKey(array $vars)
Generate a key for a given set of values
Details
at line 37
string|bool
get(string $url, array $options = [])
Execute a GET request and return the response's body
at line 57
string|bool
post(string $url, array $options = [], string $body = '')
Execute a POST request and return the response's body
at line 27
__construct(Client $client)
No description
at line 68
protected string
getCachedFilepath(array $vars)
Generate and return a filepath that matches given vars
at line 91
protected string
getCacheKey(array $vars)
Generate a key for a given set of values
at line 101
protected Client
getClient()
Return cached client configured with this client's options