8000 Add ServiceExt trait by jplatte · Pull Request #563 · tower-rs/tower-http · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ServiceExt trait #563

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

Merged
merged 1 commit into from
May 5, 2025
Merged

Add ServiceExt trait #563

merged 1 commit into from
May 5, 2025

Conversation

jplatte
Copy link
Member
@jplatte jplatte commented May 4, 2025

Motivation

I find chaining this way to be much nicer than other methods.

Solution

Add a ServiceExt trait like tower has. The implementation is a copy-paste of ServiceBuilderExt with the return types updated (and using impl IntoIterator for the sensitive headers methods).

@jplatte jplatte mentioned this pull request May 4, 2025
2 tasks
@jplatte jplatte merged commit 2c3f8f3 into main May 5, 2025
11 checks passed
@jplatte jplatte deleted the jplatte/service-ext branch May 5, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0