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

HTTP method matching #151

Open
arietto opened this issue Nov 16, 2018 · 1 comment
Open

HTTP method matching #151

arietto opened this issue Nov 16, 2018 · 1 comment

Comments

@arietto
Copy link

arietto commented Nov 16, 2018

Is there any alternative to :ActionClass(REST) in Cutelyst for HTTP method matching?
https://stackoverflow.com/a/20914232
http://www.catalystframework.org/calendar/2013/3
Sometimes I have to make a POST request with query embedded in body for getting things. I mean that this method is a getter (logically), so I'd like to have an alias.
POST get_stuff
instead of stuff_POST.
So, I don't want Controller methods to contain HTTP postfix (like "_POST"), I'd like to have an attribute instead.

@dantti
Copy link
Member

dantti commented Nov 16, 2018

No, this feature is not available in Cutelyst at the moment. You can do a PR so that I can review or wait for to have a look at how to implement this without sacrificing performance of current requests.

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

2 participants