(req, res, next)
| 6 | } |
| 7 | |
| 8 | export function haltOnDroppedConnection(req, res, next) { |
| 9 | // Only proceed if the flag has not been set for the express-timeout-handler middleware |
| 10 | if (!isConnectionDropped(req, res)) { |
| 11 | return next() |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | // Export this logic, too |
| 16 | haltOnDroppedConnection.isConnectionDropped = isConnectionDropped |
nothing calls this directly
no test coverage detected