\Google\AdsApi\CommonAdsGuzzleProxyHttpHandler

Creates a Guzzle HTTP handler that passes proxy information when invoked.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$proxyUrl
$httpClient
N/A

Properties

$proxyUrl

$proxyUrl :

Type

$httpClient

$httpClient :

Type

Methods

__construct()

__construct(\Google\AdsApi\Common\AdsSession  $session,\GuzzleHttp\ClientInterface|null  $httpClient = null)

Creates a new instance of the HTTP handler with the provided Ads session and client.

Parameters

\Google\AdsApi\Common\AdsSession $session

the Ads session whose connection settings are used to make requests

\GuzzleHttp\ClientInterface|null $httpClient

the user-provided HTTP client

__invoke()

__invoke(\Psr\Http\Message\RequestInterface  $request): \Psr\Http\Message\ResponseInterface

Accepts a PSR-7 request, make a request and returns the result as a PSR-7 response.

Parameters

\Psr\Http\Message\RequestInterface $request

the request to send

Returns

\Psr\Http\Message\ResponseInterface —

the response from making the request