Skip to content

Comments

Add ServiceExt trait#563

Merged
jplatte merged 1 commit intomainfrom
jplatte/service-ext
May 5, 2025
Merged

Add ServiceExt trait#563
jplatte merged 1 commit intomainfrom
jplatte/service-ext

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