summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorKevin Tewouda <rollandkev@yahoo.fr>2020-08-03 23:11:17 +0200
committerGitHub <noreply@github.com>2020-08-03 23:11:17 +0200
commite02b942f0b792a81721d2714fc0b8ebadab636dc (patch)
treee65e0f95daddbc3eca956f0ddec682235144f887 /README.rst
parent355ace935f84d60ff3327045b573c9cbd5db822a (diff)
Add gevent example (#1201)
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 7e88d61..b30cc75 100644
--- a/README.rst
+++ b/README.rst
@@ -27,8 +27,10 @@ You use it like this:
.. code-block:: python
import h2.connection
+ import h2.config
- conn = h2.connection.H2Connection()
+ config = h2.config.H2Configuration()
+ conn = h2.connection.H2Connection(config=config)
conn.send_headers(stream_id=stream_id, headers=headers)
conn.send_data(stream_id, data)
socket.sendall(conn.data_to_send())