From: Tom Christie Date: Thu, 4 Apr 2019 19:04:24 +0000 (+0100) Subject: Only serve http requests, ignore websocket and lifespan events X-Git-Tag: 0.0.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d6aba6eb66fdb07a68682649b8e772503315be5;p=thirdparty%2Fhttpx.git Only serve http requests, ignore websocket and lifespan events --- diff --git a/README.md b/README.md index f55e4876..98af78aa 100644 --- 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']