����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.170 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/./././public_html/vendor/aws/aws-sdk-php/src/FinSpaceData/ |
Upload File : |
<?php
namespace Aws\FinSpaceData;
use Aws\AwsClient;
use Aws\CommandInterface;
use Psr\Http\Message\RequestInterface;
/**
* This client is used to interact with the **FinSpace Public API** service.
* @method \Aws\Result createChangeset(array $args = [])
* @method \GuzzleHttp\Promise\Promise createChangesetAsync(array $args = [])
* @method \Aws\Result getProgrammaticAccessCredentials(array $args = [])
* @method \GuzzleHttp\Promise\Promise getProgrammaticAccessCredentialsAsync(array $args = [])
* @method \Aws\Result getWorkingLocation(array $args = [])
* @method \GuzzleHttp\Promise\Promise getWorkingLocationAsync(array $args = [])
*/
class FinSpaceDataClient extends AwsClient {
public function __construct(array $args)
{
parent::__construct($args);
// Setup middleware.
$stack = $this->getHandlerList();
$stack->appendBuild($this->updateContentType(), 'models.finspaceData.updateContentType');
}
/**
* Creates a middleware that updates the Content-Type header when it is present;
* this is necessary because the service protocol is rest-json which by default
* sets the content-type to 'application/json', but interacting with the service
* requires it to be set to x-amz-json-1.1
*
* @return callable
*/
private function updateContentType()
{
return function (callable $handler) {
return function (
CommandInterface $command,
RequestInterface $request = null
) use ($handler) {
$contentType = $request->getHeader('Content-Type');
if (!empty($contentType) && $contentType[0] == 'application/json') {
return $handler($command, $request->withHeader(
'Content-Type',
'application/x-amz-json-1.1'
));
}
return $handler($command, $request);
};
};
}
}