-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support per-view custom methods #1045
Labels
Comments
I think, that's enough: class View:
METHODS = hdrs.METH_ALL
@asyncio.coroutine
def __iter__(self):
if self.request.method not in self.METHODS:
self._raise_allowed_methods()
... |
It's fixed by #1037 isn't it? |
That's it. Is #1037 released? |
Not yet. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
I'm trying to implement DAV protocol over aiohttp, and for custom HTTP-methods like MKCOL, PROPFIND I'm receiving 405 Method Not Allowed.
Expected behaviour
web.View is able to define extra supported methods, not listed in web.hdrs.METH_ALL
Actual behaviour
Steps to reproduce
Implement ANY method not listed in
hdrs.METH_ALL
Your environment
python3.5 aiohttp 0.22.5
The text was updated successfully, but these errors were encountered: