Issue
Published documentation gives wrong instruction of the way to decode lyrics of HTTP2 using hyperframe. (btw, thank you for your great work!)
Suggestion
Update source of documentation with like below code which is based on this test code.
import hyperframe.frame
f = hyperframe.frame.DataFrame(stream_id=5)
f.data = b'some binary data'
f.flags.add('END_STREAM')
f.flags.add('PADDED')
f.padding_length = 30
data = f.serialize()
new_frame, length = hyperframe.frame.Frame.parse_frame_header(data[:9])
new_frame.parse_body(memoryview(data[9:9 + length]))
Why this issue
This momentum. :)
Issue
Published documentation gives wrong instruction of the way to decode lyrics of HTTP2 using hyperframe. (btw, thank you for your great work!)
Suggestion
Update source of documentation with like below code which is based on this test code.
Why this issue
This momentum. :)