1 | <?php |
||
12 | final class Middleware |
||
13 | { |
||
14 | /** |
||
15 | * @return callable |
||
16 | */ |
||
17 | 9 | public static function httpErrors() |
|
32 | |||
33 | /** |
||
34 | * @param callable $tokenGenerator |
||
35 | * @param Token $token |
||
36 | * |
||
37 | * @return callable |
||
38 | */ |
||
39 | public static function authHandler(callable $tokenGenerator, Token $token = null) |
||
45 | |||
46 | /** |
||
47 | * @codeCoverageIgnore |
||
48 | */ |
||
49 | public static function history(array &$container) |
||
53 | |||
54 | /** |
||
55 | * @codeCoverageIgnore |
||
56 | */ |
||
57 | public static function retry(callable $decider, callable $delay = null) |
||
61 | |||
62 | /** |
||
63 | * @codeCoverageIgnore |
||
64 | */ |
||
65 | public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = LogLevel::INFO) |
||
69 | |||
70 | /** |
||
71 | * @codeCoverageIgnore |
||
72 | */ |
||
73 | public static function prepareBody() |
||
77 | |||
78 | /** |
||
79 | * @codeCoverageIgnore |
||
80 | */ |
||
81 | public static function mapRequest(callable $fn) |
||
85 | |||
86 | /** |
||
87 | * @codeCoverageIgnore |
||
88 | */ |
||
89 | public static function mapResponse(callable $fn) |
||
93 | } |