Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP2FrameConvertible and HTTP2FramePayloadConvertible #216

Merged
merged 1 commit into from Jul 28, 2020

Commits on Jul 28, 2020

  1. Add HTTP2FrameConvertible and HTTP2FramePayloadConvertible

    Motivation:
    
    As part of the work for apple#214 to enforce stream creation order we need to
    remove the requirement that the data sent over the stream be aware of
    its stream ID ahead of time. This requires that the channel transporting
    the data provide the stream ID. As such we need a way to convert between
    data with stream IDs and data without stream IDs.
    
    Modifications:
    
    - Add 'HTTP2FrameConvertible' protocol whose conforming types can make
      an 'HTTP2Frame'.
    - Add 'HTTP2FramePayloadConvertible' protocol whose conforming types can make
      an 'HTTP2Frame.FramePayload'.
    - Conform 'HTTP2Frame' and 'HTTP2Frame.FramePayload' to the above
      protocols.
    
    Result:
    
    We have a protocol which an HTTP2 stream channel may be generic over.
    glbrntt committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    a0af2ed View commit details
    Browse the repository at this point in the history