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

Refactor the codecs for extension. #219

Merged
merged 1 commit into from
Jul 29, 2020
Merged

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Jul 28, 2020

Motivation:

As part of the work in #214 we're going to need to update the
HTTP2ToHTTP1 codecs. These need to be replaced for the new channel
pipelines. The core of the logic will be identical in both cases, so
let's start by factoring that logic out into some nice standalone
objects that we can reuse.

Modifications:

  • Pull out the base codecs into structures.
  • Rewrite the main codecs in terms of these new structures.

Result:

Easier extension points.

Motivation:

As part of the work in apple#214 we're going to need to update the
HTTP2ToHTTP1 codecs. These need to be replaced for the new channel
pipelines. The core of the logic will be identical in both cases, so
let's start by factoring that logic out into some nice standalone
objects that we can reuse.

Modifications:

- Pull out the base codecs into structures.
- Rewrite the main codecs in terms of these new structures.

Result:

Easier extension points.
@Lukasa Lukasa requested a review from glbrntt July 28, 2020 17:28
Copy link
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jul 29, 2020
@glbrntt glbrntt merged commit 04706e7 into apple:master Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants