 Type = require "Type"
 now = require "performance-now"
 log = require "log"
+qs = require "querystring"
 
 createServer = require "./utils/createServer"
 Response = require "../response"


  parts = req.url.split "?"
  req.path = parts[0]
  req.query = parseQuery parts[1]

  req.app = app
  req.res = res

    options.port = port
  return port

onFinish = (res) ->
  deferred = Promise.defer()
  res.on "finish", deferred.resolve
