Reference documentation and code samples for the Google Auth Library Client class HttpClientCache.
Stores an HTTP Client in order to prevent multiple instantiations.
Namespace
Google \ Auth \ HttpHandlerMethods
static::setHttpClient
Cache an HTTP Client for later calls.
Passing null will unset the cached client.
| Parameter | |
|---|---|
| Name | Description |
client |
GuzzleHttp\ClientInterface|null
|
| Returns | |
|---|---|
| Type | Description |
void |
|
static::getHttpClient
Get the stored HTTP Client, or null.
| Returns | |
|---|---|
| Type | Description |
GuzzleHttp\ClientInterface|null |
|