Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
2e35cdea
Commit
2e35cdea
authored
Dec 29, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc
parent
22af8e78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
README.rst
README.rst
+3
-3
doc/sources/python-apiref.rst
doc/sources/python-apiref.rst
+7
-7
No files found.
README.rst
View file @
2e35cdea
...
...
@@ -112,7 +112,7 @@ libnghttp2_asio C++ library requires the following packages:
The Python bindings require the following packages:
* cython >= 0.19
* python >=
2.7
* python >=
3.8
* python-setuptools
If you are using Ubuntu 16.04 LTS (Xenial Xerus) or Debian 8 (jessie)
...
...
@@ -1422,7 +1422,7 @@ The extension module is called ``nghttp2``.
determined by the ``configure`` script. If the detected Python version is not
what you expect, specify a path to Python executable in a ``PYTHON``
variable as an argument to configure script (e.g., ``./configure
PYTHON=/usr/bin/python3.
5
``).
PYTHON=/usr/bin/python3.
8
``).
The following example code illustrates basic usage of the HPACK compressor
and decompressor in Python:
...
...
@@ -1494,7 +1494,7 @@ BaseRequestHandler usage:
.. code-block:: python
#!/usr/bin/env python
#!/usr/bin/env python
3
import io, ssl
import nghttp2
...
...
doc/sources/python-apiref.rst
View file @
2e35cdea
...
...
@@ -13,7 +13,7 @@ The extension module is called ``nghttp2``.
determined by configure script. If the detected Python version is not
what you expect, specify a path to Python executable in ``PYTHON``
variable as an argument to configure script (e.g., ``./configure
PYTHON=/usr/bin/python3.
5
``).
PYTHON=/usr/bin/python3.
8
``).
HPACK API
---------
...
...
@@ -137,14 +137,14 @@ HTTP/2 servers
.. note::
We use :py:mod:`asyncio` for HTTP/2 server classes, and ALPN.
Therefore, Python 3.
5
or later is required to use these objects.
To explicitly configure nghttp2 build to use Python 3.
5
, specify
the ``PYTHON`` variable to the path to Python 3.
5
executable when
Therefore, Python 3.
8
or later is required to use these objects.
To explicitly configure nghttp2 build to use Python 3.
8
, specify
the ``PYTHON`` variable to the path to Python 3.
8
executable when
invoking configure script like this:
.. code-block:: text
$ ./configure PYTHON=/usr/bin/python3.
5
$ ./configure PYTHON=/usr/bin/python3.
8
.. py:class:: HTTP2Server(address, RequestHandlerClass, ssl=None)
...
...
@@ -336,7 +336,7 @@ The following example illustrates :py:class:`HTTP2Server` and
.. code-block:: python
#!/usr/bin/env python
#!/usr/bin/env python
3
import io, ssl
...
...
@@ -367,7 +367,7 @@ response body generation. This is simplified reverse proxy:
.. code-block:: python
#!/usr/bin/env python
#!/usr/bin/env python
3
import ssl
import os
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment