示例#1
0
    def stream(self):
        if self.is_websocket:
            raise errors.UnsupportedError(
                'ASGI does not support reading the WebSocket handshake request body.'
            )

        if not self._stream:
            self._stream = BoundedStream(self._receive, self.content_length)

        return self._stream
示例#2
0
文件: request.py 项目: hackedd/falcon
 def media(self):
     raise errors.UnsupportedError(
         'The media property is not supported for ASGI requests. '
         'Please use the Request.get_media() coroutine function instead.')