diff options
author | Kevin Tewouda <rollandkev@yahoo.fr> | 2020-08-03 23:11:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 23:11:17 +0200 |
commit | e02b942f0b792a81721d2714fc0b8ebadab636dc (patch) | |
tree | e65e0f95daddbc3eca956f0ddec682235144f887 /README.rst | |
parent | 355ace935f84d60ff3327045b573c9cbd5db822a (diff) |
Add gevent example (#1201)
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()) |