[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
Functions used to create and wrap handlers with handler middleware.
File Size: | 254 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
cookies() X-Ref |
Middleware that adds cookies to requests. The options array must be set to a CookieJarInterface in order to use cookies. This is typically handled for you by a client. return: callable Returns a function that accepts the next handler. |
httpErrors() X-Ref |
No description |
history(&$container) X-Ref |
No description |
tap(callable $before = null, callable $after = null) X-Ref |
No description |
redirect() X-Ref |
Middleware that handles request redirects. return: callable Returns a function that accepts the next handler. |
retry(callable $decider, callable $delay = null) X-Ref |
Middleware that retries requests based on the boolean result of invoking the provided "decider" function. If no delay function is provided, a simple implementation of exponential backoff will be utilized. param: callable $decider Function that accepts the number of retries, param: callable $delay Function that accepts the number of retries and return: callable Returns a function that accepts the next handler. |
log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = 'info' ) X-Ref |
Middleware that logs requests, responses, and errors using a message formatter. param: LoggerInterface $logger Logs messages. param: MessageFormatter $formatter Formatter used to create message strings. param: string $logLevel Level at which to log requests. return: callable Returns a function that accepts the next handler. |
prepareBody() X-Ref |
No description |
mapRequest(callable $fn) X-Ref |
Middleware that applies a map function to the request before passing to the next handler. param: callable $fn Function that accepts a RequestInterface and returns return: callable |
mapResponse(callable $fn) X-Ref |
Middleware that applies a map function to the resolved promise's response. param: callable $fn Function that accepts a ResponseInterface and return: callable |
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |