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

Implement tower::Layer for Extension #801

Merged
merged 3 commits into from
Feb 28, 2022
Merged

Implement tower::Layer for Extension #801

merged 3 commits into from
Feb 28, 2022

Conversation

davidpdrsn
Copy link
Member

As discussed in #797 Extension can actually implement tower::Layer. This means users only need to know one type to apply the extensions and extract them. Makes the API a bit smaller.

I think I'm gonna backport this with a deprecation for AddExtensionLayer, and then remove it on main. I'll do that when this is merged.

@davidpdrsn davidpdrsn enabled auto-merge (squash) February 28, 2022 23:20
@davidpdrsn davidpdrsn merged commit a2b568c into main Feb 28, 2022
@davidpdrsn davidpdrsn deleted the extension-layer branch February 28, 2022 23:39
davidpdrsn added a commit that referenced this pull request Feb 28, 2022
* Implement `tower::Layer` for `Extension`

* changelog
davidpdrsn added a commit that referenced this pull request Mar 1, 2022
* Implement `tower::Layer` for `Extension` (#801)

* Implement `tower::Layer` for `Extension`

* changelog

* Deprecate `AddExtensionLayer`

* changelog

* Add missing #[allow(deprecated)]
davidpdrsn added a commit that referenced this pull request Mar 1, 2022
- **added:** Implement `tower::Layer` for `Extension` ([#801])
- **changed:** Deprecate `AddExtensionLayer`. Use `Extension` instead ([#805])

[#801]: #801
[#805]: #805
@davidpdrsn davidpdrsn mentioned this pull request Mar 1, 2022
davidpdrsn added a commit that referenced this pull request Mar 1, 2022
- **added:** Implement `tower::Layer` for `Extension` ([#801])
- **changed:** Deprecate `AddExtensionLayer`. Use `Extension` instead ([#805])

[#801]: #801
[#805]: #805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants