Skip to content

Outdated documentation #124

@sakurai-youhei

Description

@sakurai-youhei

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. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions