stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

RespondWith Redirect should be a 302 status code #38

Closed tylerstillwater closed 11 years ago

tylerstillwater commented 11 years ago

We should also add convenience methods for the various other forms of redirect

matryer commented 11 years ago

NOTE: The fix makes these possible:

WithRedirect // uses http.StatusTemporaryRedirect - 302
WithTemporaryRedirect // uses http.StatusTemporaryRedirect - 307
WithPermanentRedirect // uses http.StatusTemporaryRedirect - 301