|
10 | 10 | # .asyncio.client
|
11 | 11 | "connect",
|
12 | 12 | "unix_connect",
|
| 13 | + "ClientConnection", |
13 | 14 | # .asyncio.server
|
14 | 15 | "basic_auth",
|
15 | 16 | "broadcast",
|
16 | 17 | "serve",
|
17 | 18 | "unix_serve",
|
| 19 | + "ServerConnection", |
| 20 | + "Server", |
18 | 21 | # .client
|
19 | 22 | "ClientProtocol",
|
20 | 23 | # .datastructures
|
|
44 | 47 | "ProtocolError",
|
45 | 48 | "SecurityError",
|
46 | 49 | "WebSocketException",
|
| 50 | + # .frames |
| 51 | + "Close", |
| 52 | + "CloseCode", |
| 53 | + "Frame", |
| 54 | + "Opcode", |
| 55 | + # .http11 |
| 56 | + "Request", |
| 57 | + "Response", |
| 58 | + # .protocol |
| 59 | + "Protocol", |
| 60 | + "Side", |
| 61 | + "State", |
47 | 62 | # .server
|
48 | 63 | "ServerProtocol",
|
49 | 64 | # .typing
|
|
58 | 73 |
|
59 | 74 | # When type checking, import non-deprecated aliases eagerly. Else, import on demand.
|
60 | 75 | if typing.TYPE_CHECKING:
|
61 |
| - from .asyncio.client import connect, unix_connect |
62 |
| - from .asyncio.server import basic_auth, broadcast, serve, unix_serve |
| 76 | + from .asyncio.client import ClientConnection, connect, unix_connect |
| 77 | + from .asyncio.server import ( |
| 78 | + Server, |
| 79 | + ServerConnection, |
| 80 | + basic_auth, |
| 81 | + broadcast, |
| 82 | + serve, |
| 83 | + unix_serve, |
| 84 | + ) |
63 | 85 | from .client import ClientProtocol
|
64 | 86 | from .datastructures import Headers, HeadersLike, MultipleValuesError
|
65 | 87 | from .exceptions import (
|
|
86 | 108 | SecurityError,
|
87 | 109 | WebSocketException,
|
88 | 110 | )
|
| 111 | + from .frames import Close, CloseCode, Frame, Opcode |
| 112 | + from .http11 import Request, Response |
| 113 | + from .protocol import Protocol, Side, State |
89 | 114 | from .server import ServerProtocol
|
90 | 115 | from .typing import (
|
91 | 116 | Data,
|
|
103 | 128 | # .asyncio.client
|
104 | 129 | "connect": ".asyncio.client",
|
105 | 130 | "unix_connect": ".asyncio.client",
|
| 131 | + "ClientConnection": ".asyncio.client", |
106 | 132 | # .asyncio.server
|
107 | 133 | "basic_auth": ".asyncio.server",
|
108 | 134 | "broadcast": ".asyncio.server",
|
109 | 135 | "serve": ".asyncio.server",
|
110 | 136 | "unix_serve": ".asyncio.server",
|
| 137 | + "ServerConnection": ".asyncio.server", |
| 138 | + "Server": ".asyncio.server", |
111 | 139 | # .client
|
112 | 140 | "ClientProtocol": ".client",
|
113 | 141 | # .datastructures
|
|
137 | 165 | "ProtocolError": ".exceptions",
|
138 | 166 | "SecurityError": ".exceptions",
|
139 | 167 | "WebSocketException": ".exceptions",
|
| 168 | + # .frames |
| 169 | + "Close": ".frames", |
| 170 | + "CloseCode": ".frames", |
| 171 | + "Frame": ".frames", |
| 172 | + "Opcode": ".frames", |
| 173 | + # .http11 |
| 174 | + "Request": ".http11", |
| 175 | + "Response": ".http11", |
| 176 | + # .protocol |
| 177 | + "Protocol": ".protocol", |
| 178 | + "Side": ".protocol", |
| 179 | + "State": ".protocol", |
140 | 180 | # .server
|
141 | 181 | "ServerProtocol": ".server",
|
142 | 182 | # .typing
|
|
0 commit comments