]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Only serve http requests, ignore websocket and lifespan events
authorTom Christie <tom@tomchristie.com>
Thu, 4 Apr 2019 19:04:24 +0000 (20:04 +0100)
committerTom Christie <tom@tomchristie.com>
Thu, 4 Apr 2019 19:04:24 +0000 (20:04 +0100)
README.md

index f55e4876489fad6c2ff0f1f44ef427d2e39c0a9f..98af78aa2c39c03cb7feadf972ebe08868c5f4ce 100644 (file)
--- a/README.md
+++ b/README.md
@@ -43,6 +43,7 @@ class GatewayServer:
         self.pool = httpcore.PoolManager()
 
     async def __call__(self, scope, receive, send):
+        assert scope['type'] == 'http'
         path = scope['path']
         query = scope['query_string']
         method = scope['method']