|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | """ |
3 | | -hyper/http20/hpack_compat |
4 | | -~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 3 | +hpack/hpack_compat |
| 4 | +~~~~~~~~~~~~~~~~~~ |
5 | 5 |
|
6 | 6 | Provides an abstraction layer over two HPACK implementations. |
7 | 7 |
|
8 | | -Hyper has a pure-Python greenfield HPACK implementation that can be used on |
9 | | -all Python platforms. However, this implementation is both slower and more |
| 8 | +This module has a pure-Python greenfield HPACK implementation that can be used |
| 9 | +on all Python platforms. However, this implementation is both slower and more |
10 | 10 | memory-hungry than could be achieved with a C-language version. Additionally, |
11 | 11 | nghttp2's HPACK implementation currently achieves better compression ratios |
12 | 12 | than hyper's in almost all benchmarks. |
13 | 13 |
|
14 | | -For those who care about efficiency and speed in HPACK, hyper allows you to |
15 | | -use nghttp2's HPACK implementation instead of hyper's. This module detects |
| 14 | +For those who care about efficiency and speed in HPACK, this module allows you |
| 15 | +to use nghttp2's HPACK implementation instead of ours. This module detects |
16 | 16 | whether the nghttp2 bindings are installed, and if they are it wraps them in |
17 | | -a hyper-compatible API and uses them instead of its own. If not, it falls back |
18 | | -to hyper's built-in Python bindings. |
| 17 | +a hpack-compatible API and uses them instead of its own. If not, it falls back |
| 18 | +to the built-in Python bindings. |
19 | 19 | """ |
20 | 20 | import logging |
21 | 21 | from .hpack import _to_bytes |
|
29 | 29 | log.debug("Using nghttp2's HPACK implementation.") |
30 | 30 | except ImportError: |
31 | 31 | USE_NGHTTP2 = False |
32 | | - log.debug("Using hyper's pure-Python HPACK implementation.") |
| 32 | + log.debug("Using our pure-Python HPACK implementation.") |
33 | 33 |
|
34 | 34 | if USE_NGHTTP2: |
35 | 35 | class Encoder(object): |
|
0 commit comments