Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resp.redirect method #3

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

resp.redirect method #3

alejandro opened this issue Mar 10, 2012 · 0 comments

Comments

@alejandro
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant