Mercurial > code > home > repos > light9
annotate stubs/cyclone/websocket.pyi @ 1863:0f0ff27e55a3
stubs, mostly autogen or empty
Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 12:01:26 +0000 |
parents | |
children | 7d5fe19f77a1 |
rev | line source |
---|---|
1863
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 # Stubs for cyclone.websocket (Python 3) |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 # |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 import cyclone.escape |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 import cyclone.web |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 from typing import Any |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 class _NotEnoughFrame(Exception): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 class WebSocketHandler(cyclone.web.RequestHandler): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 application: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 request: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 transport: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 ws_protocol: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 def __init__(self, application: Any, request: Any, **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 def headersReceived(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 def connectionMade(self, *args: Any, **kwargs: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 def connectionLost(self, reason: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 def messageReceived(self, message: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 def sendMessage(self, message: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 def forbidConnection(self, message: Any): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 class WebSocketProtocol: |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 handler: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 request: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 transport: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 def __init__(self, handler: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
29 def acceptConnection(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
30 def rawDataReceived(self, data: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
31 def sendMessage(self, message: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
32 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
33 class WebSocketProtocol17(WebSocketProtocol): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
34 def __init__(self, handler: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
35 def acceptConnection(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
36 def rawDataReceived(self, data: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
37 def sendMessage(self, message: Any, code: int = ...) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
38 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
39 class WebSocketProtocol76(WebSocketProtocol): |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
40 def __init__(self, handler: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
41 def acceptConnection(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
42 def rawDataReceived(self, data: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
43 def close(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
44 def sendMessage(self, message: Any) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
45 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
46 class FrameDecodeError(Exception): ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
47 |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
48 class Hixie76FrameDecoder: |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
49 CLOSING_FRAME: Any = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
50 WAIT_FOR_FRAME_TYPE: int = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
51 INSIDE_FRAME: int = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
52 WAIT_FOR_CLOSE: int = ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
53 def __init__(self) -> None: ... |
0f0ff27e55a3
stubs, mostly autogen or empty
Drew Perttula <drewp@bigasterisk.com>
parents:
diff
changeset
|
54 def feed(self, data: Any): ... |