Transfer Method Yesod GET PUT DELETE What?

I have the following routes definition:

mkYesod "App" [parseRoutes|
/ ImagesR GET POST
/image/#ImageId ImageR DELETE
/static StaticR Static getStatic
/echo-body EchoBodyR PUT
|]

      

and one of the handlers has redirect ImagesR

. So which GET, POST or DELETE will be called after the redirect?

+3


source to share


1 answer


According to HTTP , a redirect can be done using the same method or a simple GET.



And the redirect documentation in Yesod says it always uses GET.

+3


source







All Articles