Skip to content
Permalink
Browse files

Revert "Merge branch 'master' of github.com:kennethreitz/responder"

This reverts commit 446deff, reversing
changes made to e086311.
  • Loading branch information
kennethreitz committed Oct 23, 2018
1 parent 446deff commit 950be14ecaeb46f66154bf8f10fd67b2bb832db7
Showing with 5 additions and 6 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 docs/source/tour.rst
  3. +2 −3 responder/routes.py
  4. +1 −1 setup.py
@@ -9,7 +9,7 @@ coverage.xml

__pycache__
tests/__pycache__
*.pyc

build
responder.egg-info/
dist/
@@ -185,7 +185,7 @@ WebSocket Support

Responder supports WebSockets::

@api.route('/ws', websocket=True)
@api.ws_route('/ws')
async def hello(ws):
await ws.accept()
await ws.send_text("Hello via websocket!")
@@ -77,9 +77,8 @@ def is_graphql(self):
def is_class_based(self):
return hasattr(self.endpoint, "__class__")

@property
def is_function(self):
is_callable = callable(self.endpoint)
routed = hasattr(self.endpoint, "is_routed")
code = hasattr(self.endpoint, "__code__")
kwdefaults = hasattr(self.endpoint, "__kwdefaults__")
return all((is_callable, code, kwdefaults))
return all((routed, code, kwdefaults))
@@ -36,7 +36,7 @@
"python-multipart",
"chardet",
"apispec>=1.0.0b1",
"marshmallow>=3.0.0b7",
"marshmallow",
"asgiref",
"docopt",
"itsdangerous",

0 comments on commit 950be14

Please sign in to comment.
You can’t perform that action at this time.