ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR-test-old/vendor/guzzlehttp/guzzle/src
/
home
mhhtmff
app
NH-HR-test-old
vendor
guzzlehttp
guzzle
src
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
Cookie
-
chmod
Open
Rename
Delete
Exception
-
chmod
Open
Rename
Delete
Handler
-
chmod
Open
Rename
Delete
BodySummarizer.php
608 B
chmod
View
DL
Edit
Rename
Delete
BodySummarizerInterface.php
233 B
chmod
View
DL
Edit
Rename
Delete
Client.php
18 MB
chmod
View
DL
Edit
Rename
Delete
ClientInterface.php
2.83 MB
chmod
View
DL
Edit
Rename
Delete
ClientTrait.php
8.79 MB
chmod
View
DL
Edit
Rename
Delete
functions.php
5.55 MB
chmod
View
DL
Edit
Rename
Delete
functions_include.php
160 B
chmod
View
DL
Edit
Rename
Delete
HandlerStack.php
8.51 MB
chmod
View
DL
Edit
Rename
Delete
MessageFormatter.php
7.61 MB
chmod
View
DL
Edit
Rename
Delete
MessageFormatterInterface.php
561 B
chmod
View
DL
Edit
Rename
Delete
Middleware.php
10.9 MB
chmod
View
DL
Edit
Rename
Delete
Pool.php
4.61 MB
chmod
View
DL
Edit
Rename
Delete
PrepareBodyMiddleware.php
3.05 MB
chmod
View
DL
Edit
Rename
Delete
RedirectMiddleware.php
7.92 MB
chmod
View
DL
Edit
Rename
Delete
RequestOptions.php
10.7 MB
chmod
View
DL
Edit
Rename
Delete
RetryMiddleware.php
3.53 MB
chmod
View
DL
Edit
Rename
Delete
TransferStats.php
3.11 MB
chmod
View
DL
Edit
Rename
Delete
Utils.php
12.86 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR-test-old/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
<?php namespace GuzzleHttp; use GuzzleHttp\Promise as P; use GuzzleHttp\Promise\PromiseInterface; 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. * * @final */ class RetryMiddleware { /** * @var callable(RequestInterface, array): PromiseInterface */ private $nextHandler; /** * @var callable */ private $decider; /** * @var callable(int) */ 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(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke. * @param (callable(int): int)|null $delay Function that accepts the number of retries * 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. * * @return int milliseconds. */ public static function exponentialDelay(int $retries): int { return (int) 2 ** ($retries - 1) * 1000; } public function __invoke(RequestInterface $request, array $options): PromiseInterface { 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 */ private function onFulfilled(RequestInterface $request, array $options): callable { return function ($value) use ($request, $options) { if (!($this->decider)( $options['retries'], $request, $value, null )) { return $value; } return $this->doRetry($request, $options, $value); }; } /** * Execute rejected closure */ private function onRejected(RequestInterface $req, array $options): callable { return function ($reason) use ($req, $options) { if (!($this->decider)( $options['retries'], $req, null, $reason )) { return P\Create::rejectionFor($reason); } return $this->doRetry($req, $options); }; } private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null): PromiseInterface { $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); return $this($request, $options); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply