resp.redirect method #3

Open
alejandro opened this Issue Mar 10, 2012 · 0 comments

Projects

None yet

1 participant

@alejandro

I'm totally enjoying work with tako. I found that you didn't implement the redirect method in the resp.

For the moment I'm doing this:

resp.redirect =  function(url, status) {
  resp.statusCode = 302
  resp.setHeader('Location', url)
  resp.end()
}

And it's working, but I feel like there is a lot of more options to implement in this method (not an expert), Also I didn't found a bodyParser for inconming request. That will be handy.
I'm really looking forward for it, for this implementation.
Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment