boring-http 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- boring_http/__init__.py +58 -0
- boring_http/client.py +692 -0
- boring_http/codings.py +39 -0
- boring_http/cookies.py +127 -0
- boring_http/errors.py +49 -0
- boring_http/hpack.py +247 -0
- boring_http/hpack_tables.py +326 -0
- boring_http/http1.py +259 -0
- boring_http/http2.py +685 -0
- boring_http/http3.py +551 -0
- boring_http/message.py +598 -0
- boring_http/pool.py +96 -0
- boring_http/py.typed +0 -0
- boring_http/qpack.py +245 -0
- boring_http/qpack_tables.py +104 -0
- boring_http/quic/__init__.py +0 -0
- boring_http/quic/connection.py +1261 -0
- boring_http/quic/packet.py +655 -0
- boring_http/quic/protocol.py +474 -0
- boring_http/quic/recovery.py +303 -0
- boring_http/quic/streams.py +154 -0
- boring_http/timing.py +63 -0
- boring_http/websocket.py +216 -0
- boring_http-1.0.0.dist-info/METADATA +303 -0
- boring_http-1.0.0.dist-info/RECORD +26 -0
- boring_http-1.0.0.dist-info/WHEEL +4 -0
boring_http/__init__.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from boring_http.client import Client
|
|
2
|
+
from boring_http.cookies import Cookie, CookieJar
|
|
3
|
+
from boring_http.errors import (
|
|
4
|
+
ConnectError,
|
|
5
|
+
HTTPError,
|
|
6
|
+
ProtocolError,
|
|
7
|
+
RemoteDisconnected,
|
|
8
|
+
StreamRefused,
|
|
9
|
+
StreamResetError,
|
|
10
|
+
TimeoutError,
|
|
11
|
+
TooManyRedirects,
|
|
12
|
+
WebSocketClosed,
|
|
13
|
+
)
|
|
14
|
+
from boring_http.http2 import CHROME, Http2Profile
|
|
15
|
+
from boring_http.http3 import Http3Profile
|
|
16
|
+
from boring_http.message import (
|
|
17
|
+
URL,
|
|
18
|
+
Body,
|
|
19
|
+
Headers,
|
|
20
|
+
HTTPStatusError,
|
|
21
|
+
HTTPVersion,
|
|
22
|
+
Request,
|
|
23
|
+
Response,
|
|
24
|
+
)
|
|
25
|
+
from boring_http.quic.connection import TransportParameters
|
|
26
|
+
from boring_http.quic.packet import QUIC_V1, QUIC_V2
|
|
27
|
+
from boring_http.timing import Timeout
|
|
28
|
+
from boring_http.websocket import WebSocket
|
|
29
|
+
|
|
30
|
+
__all__ = (
|
|
31
|
+
"CHROME",
|
|
32
|
+
"QUIC_V1",
|
|
33
|
+
"QUIC_V2",
|
|
34
|
+
"URL",
|
|
35
|
+
"Body",
|
|
36
|
+
"Client",
|
|
37
|
+
"ConnectError",
|
|
38
|
+
"Cookie",
|
|
39
|
+
"CookieJar",
|
|
40
|
+
"HTTPError",
|
|
41
|
+
"HTTPStatusError",
|
|
42
|
+
"HTTPVersion",
|
|
43
|
+
"Headers",
|
|
44
|
+
"Http2Profile",
|
|
45
|
+
"Http3Profile",
|
|
46
|
+
"ProtocolError",
|
|
47
|
+
"RemoteDisconnected",
|
|
48
|
+
"Request",
|
|
49
|
+
"Response",
|
|
50
|
+
"StreamRefused",
|
|
51
|
+
"StreamResetError",
|
|
52
|
+
"Timeout",
|
|
53
|
+
"TimeoutError",
|
|
54
|
+
"TooManyRedirects",
|
|
55
|
+
"TransportParameters",
|
|
56
|
+
"WebSocket",
|
|
57
|
+
"WebSocketClosed",
|
|
58
|
+
)
|