Skip to content

Add internal serialization of debug_data to HTTP/2 GOAWAY frames #3200

@seanmonstar

Description

@seanmonstar

It would be useful to be able to send the additional debug_data in HTTP/2 GOAWAY frames. The frame currently has a field to hold it, and uses that when decoding, but if we try to send a frame with extra data, it gets ignored. Here's some steps to get this done:

  • Set the payload length and serialize the debug_data in GoAway::encode
  • Add a fn data(self, b: Into<Bytes>) method to the frames test support.
  • Add a unit test to h2-tests showing debug data was serialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-http2Area: HTTP/2 specific.C-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions