summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorCory Benfield <lukasaoz@gmail.com>2015-10-28 17:32:28 +0900
committerCory Benfield <lukasaoz@gmail.com>2015-10-28 17:32:28 +0900
commitee5ebe91dec9df61b0d3398398884cda3150b688 (patch)
tree6e0d2225bbfdae0b6e676fb7679d54873147c0c7 /README.rst
parent32021502ef917b1b36c5c26f30cf02ae27a87ab1 (diff)
Improve usage example in README
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index 64fa78f..6648b79 100644
--- a/README.rst
+++ b/README.rst
@@ -16,9 +16,10 @@ You use it like this::
import h2.connection
- conn = h2.connection.Connection()
- frames, stream_id = conn.send_headers(headers)
- data_frames = conn.send_data(stream_id, data)
+ conn = h2.connection.H2Connection()
+ conn.send_headers(stream_id=stream_id, headers=headers)
+ conn.send_data(stream_id, data)
+ socket.sendall(conn.data_to_send())
events = conn.receive_data(socket_data)
This repository does not provide a parsing layer, a network layer, or any rules