%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/quickbooks/v3-php-sdk/src/Core/HttpClients/ |
Upload File : |
<?php
namespace QuickBooksOnline\API\Core\HttpClients;
use QuickBooksOnline\API\Core\CoreHelper;
use QuickBooksOnline\API\Core\Http\Compression\CompressorBase;
use QuickBooksOnline\API\Core\Http\Serialization\IEntitySerializer;
use QuickBooksOnline\API\Core\ServiceContext;
use QuickBooksOnline\API\Diagnostics\LogRequestsToDisk;
/**
* Rest Handler class.
*/
class RestHandler
{
/**
* The Service context
* @var ServiceContext
*/
protected $serviceContext;
/**
* Response serializer.
* @var IEntitySerializer
*/
protected $ResponseSerializer;
/**
* Gets or sets Request compressor.
* @var CompressorBase
*/
protected $RequestCompressor;
/**
* Gets or sets Response compressor.
* @var CompressorBase
*/
protected $ResponseCompressor;
/**
* Gets or sets Request serializer.
* @var IEntitySerializer
*/
protected $RequestSerializer;
/**
* Get the Logging component for the REST service
* @var LogRequestsToDisk
*/
protected $RequestLogging;
/**
*
* Initializes a new instance of the RestHandler class.
*
* @param ServiceContext $context The Service Context
*/
protected function __construct($context)
{
$this->serviceContext = $context;
$this->RequestCompressor = CoreHelper::GetCompressor($this->serviceContext, true);
$this->ResponseCompressor = CoreHelper::GetCompressor($this->serviceContext, false);
$this->RequestSerializer = CoreHelper::GetSerializer($this->serviceContext, true);
$this->ResponseSerializer = CoreHelper::GetSerializer($this->serviceContext, false);
$this->RequestLogging = CoreHelper::GetRequestLogging($this->serviceContext);
}
}