Lines Matching refs:handler
28 return static function (callable $handler): callable {
29 return static function ($request, array $options) use ($handler) {
31 return $handler($request, $options);
38 return $handler($request, $options)
60 return static function (callable $handler) use ($bodySummarizer): callable {
61 return static function ($request, array $options) use ($handler, $bodySummarizer) {
63 return $handler($request, $options);
66 return $handler($request, $options)->then(
94 return static function (callable $handler) use (&$container): callable {
95 … return static function (RequestInterface $request, array $options) use ($handler, &$container) {
96 return $handler($request, $options)->then(
137 return static function (callable $handler) use ($before, $after): callable {
138 …return static function (RequestInterface $request, array $options) use ($handler, $before, $after)…
142 $response = $handler($request, $options);
159 return static function (callable $handler): RedirectMiddleware {
160 return new RedirectMiddleware($handler);
181 return static function (callable $handler) use ($decider, $delay): RetryMiddleware {
182 return new RetryMiddleware($decider, $handler, $delay);
205 return static function (callable $handler) use ($logger, $formatter, $logLevel): callable {
206 …return static function (RequestInterface $request, array $options = []) use ($handler, $logger, $f…
207 return $handler($request, $options)->then(
232 return static function (callable $handler): PrepareBodyMiddleware {
233 return new PrepareBodyMiddleware($handler);
246 return static function (callable $handler) use ($fn): callable {
247 return static function (RequestInterface $request, array $options) use ($handler, $fn) {
248 return $handler($fn($request), $options);
262 return static function (callable $handler) use ($fn): callable {
263 return static function (RequestInterface $request, array $options) use ($handler, $fn) {
264 return $handler($request, $options)->then($fn);