Skip to content

Commit

Permalink
Work on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Feb 2, 2016
1 parent c596e86 commit e66ae57
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions aiohttp/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def resolve(self, request):

class AbstractMatchInfo(metaclass=ABCMeta):

@property # pragma: no branch
@asyncio.coroutine # pragma: no branch
@abstractmethod
def handler(self):
"""Return handler for match info"""
def handler(self, request):
"""Execute matched request handler"""

@property # pragma: no branch
@asyncio.coroutine # pragma: no branch
@abstractmethod
def expect_handler(self):
def expect_handler(self, request):
"""Expect handler for 100-continue processing"""

@property # pragma: no branch
Expand Down
4 changes: 0 additions & 4 deletions aiohttp/web_urldispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ def __init__(self, http_exception):
self._exception = http_exception
super().__init__({}, SystemRoute(self._exception))

@property
def expect_handler(self):
return self._route.handler

@property
def http_exception(self):
return self._exception
Expand Down
8 changes: 8 additions & 0 deletions docs/web_abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ Not Allowed*. :attr:`AbstractMatchInfo.handler` points to internal

Abstract *math info*, returned by :meth:`AbstractRouter` call.

.. attribute:: http_exception

Abstract method performing :term:`web-handler` processing.

.. coroutinemethod:: handler(request)

Abstract method performing :term:`web-handler` processing.

.. coroutinemethod:: expect_handler(request)

Abstract method for handling *100-continue* processing.

0 comments on commit e66ae57

Please sign in to comment.