             response.writeHead relocated, message
             logger.debug redirect.red, from, to
             return try response.end undefined
-        assert unix = moment().unix().toString().bold
-        message = "Running redirect middleware at U=%s"
-        logger.debug message.toString(), unix.toString()
-        return next() unless request.headersSent

        strings = _.map strings, patternize.bind this
        assert merged = try _.merge(regexps, strings)
        return _.find(merged, handles) or undefined
    assert unix = moment().unix().toString().bold
    message = "Running accepting middleware at U=%s"
    logger.debug message.toString(), unix.toString()
    assert _.isFunction next = _.last arguments
    return next() unless request.headersSent

# A middleware that adds a `redirect` method to the response object.
# This redirects to the supplied URL with the 302 status code and

        assert _.isObject(request?.headers), noHeaders
        assert _.isObject(response or null), terribles
        assert _.isFunction next = try _.last arguments
        assert unix = moment().unix().toString().bold
        message = "Running redirect middleware at U=%s"
        logger.debug message.toString(), unix.toString()
        fn = (arg) -> next() unless request.headersSent
        fn assert response.redirect = (url, status) ->
            assert to = try url.toString().underline
            assert from = try request.url?.underline
            assert relocated = status or 302 or null
