PluginProbe
WP-Stateless – Google Cloud Storage / 2.1.4
WP-Stateless – Google Cloud Storage v2.1.4
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
wp-stateless / lib / Google / vendor / google / auth / src / HttpHandler / Guzzle6HttpHandler.php

Guzzle6HttpHandler.php in WP-Stateless – Google Cloud Storage 2.1.4, at lib/Google/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php

36 lines 714 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Google\Auth\HttpHandler;
4
5 use GuzzleHttp\ClientInterface;
6 use Psr\Http\Message\RequestInterface;
7 use Psr\Http\Message\ResponseInterface;
8
9 class Guzzle6HttpHandler
10 {
11 /**
12 * @var ClientInterface
13 */
14 private $client;
15
16 /**
17 * @param ClientInterface $client
18 */
19 public function __construct(ClientInterface $client)
20 {
21 $this->client = $client;
22 }
23
24 /**
25 * Accepts a PSR-7 request and an array of options and returns a PSR-7 response.
26 *
27 * @param RequestInterface $request
28 * @param array $options
29 * @return ResponseInterface
30 */
31 public function __invoke(RequestInterface $request, array $options = [])
32 {
33 return $this->client->send($request, $options);
34 }
35 }
36