mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-14 02:27:23 -07:00
v2: Updates
* Simplifies & beautifies everything * Introduces a new Class system. * Errors are defaulted to AWS's handler. * New function names & more efficient handling. * Should fix a majority of the errors. Please read the README for more!
This commit is contained in:
parent
ad0726e41e
commit
e6d7753dc8
1095 changed files with 45088 additions and 2911 deletions
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
namespace Aws\Handler\GuzzleV5;
|
||||
|
||||
use Aws\Sdk;
|
||||
use Exception;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
|
@ -27,14 +26,16 @@ use Psr\Http\Message\StreamInterface as Psr7StreamInterface;
|
|||
class GuzzleHandler
|
||||
{
|
||||
private static $validOptions = [
|
||||
'proxy' => true,
|
||||
'verify' => true,
|
||||
'timeout' => true,
|
||||
'debug' => true,
|
||||
'connect_timeout' => true,
|
||||
'stream' => true,
|
||||
'delay' => true,
|
||||
'sink' => true,
|
||||
'proxy' => true,
|
||||
'expect' => true,
|
||||
'cert' => true,
|
||||
'verify' => true,
|
||||
'timeout' => true,
|
||||
'debug' => true,
|
||||
'connect_timeout' => true,
|
||||
'stream' => true,
|
||||
'delay' => true,
|
||||
'sink' => true,
|
||||
];
|
||||
|
||||
/** @var ClientInterface */
|
||||
|
@ -50,9 +51,9 @@ class GuzzleHandler
|
|||
|
||||
/**
|
||||
* @param Psr7Request $request
|
||||
* @param array $options
|
||||
*
|
||||
* @return Promise\Promise
|
||||
* @param array $options
|
||||
* @return Promise\Promise|Promise\PromiseInterface
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function __invoke(Psr7Request $request, array $options = [])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue