Lines Matching refs:handler

26         return function (callable $handler) {
27 return function ($request, array $options) use ($handler) {
29 return $handler($request, $options);
35 return $handler($request, $options)
54 return function (callable $handler) {
55 return function ($request, array $options) use ($handler) {
57 return $handler($request, $options);
59 return $handler($request, $options)->then(
86 return function (callable $handler) use (&$container) {
87 return function ($request, array $options) use ($handler, &$container) {
88 return $handler($request, $options)->then(
127 return function (callable $handler) use ($before, $after) {
128 return function ($request, array $options) use ($handler, $before, $after) {
132 $response = $handler($request, $options);
148 return function (callable $handler) {
149 return new RedirectMiddleware($handler);
170 return function (callable $handler) use ($decider, $delay) {
171 return new RetryMiddleware($decider, $handler, $delay);
187 return function (callable $handler) use ($logger, $formatter, $logLevel) {
188 … return function ($request, array $options) use ($handler, $logger, $formatter, $logLevel) {
189 return $handler($request, $options)->then(
216 return function (callable $handler) {
217 return new PrepareBodyMiddleware($handler);
231 return function (callable $handler) use ($fn) {
232 return function ($request, array $options) use ($handler, $fn) {
233 return $handler($fn($request), $options);
248 return function (callable $handler) use ($fn) {
249 return function ($request, array $options) use ($handler, $fn) {
250 return $handler($request, $options)->then($fn);