+
+# TODO: Support custom "404 Not Found" page.
 
 compression = require "compression"
 assertTypes = require "assertTypes"

    # Continue to the next pipe.
    startTime = null
    next = ->
      return if ++index is length
      startTime = now()
      result = pipes[index].call context, req, res
      if result and typeof result.then is "function"

    # Start with the first pipe.
    Promise.try next

    # Uncaught errors end up here.
    .fail (error) ->
      console.log error.stack
