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

Add Map service combinator #435

Merged
merged 11 commits into from
Apr 14, 2020
Merged

Add Map service combinator #435

merged 11 commits into from
Apr 14, 2020

Conversation

LucioFranco
Copy link
Member

Signed-off-by: Lucio Franco luciofranco14@gmail.com

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco LucioFranco requested a review from jonhoo April 13, 2020 21:14
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

What do you think about calling this map_request instead? I assumed map would behave more like Future::map, and mutate the response. It seems like we might want to have separate map_request and map_response combinators, so it could be good to disambiguate them.

Sorry for bikeshedding.

@LucioFranco
Copy link
Member Author

@hawkw I like that, will make the change and add the other one. 👍

@jonhoo jonhoo added A-util Area: The tower "util" module C-enhancement Category: A PR with an enhancement or a proposed on in an issue. T-middleware Topic: middleware labels Apr 14, 2020
@jonhoo
Copy link
Collaborator

jonhoo commented Apr 14, 2020

This also closes #272 I believe?

@jonhoo
Copy link
Collaborator

jonhoo commented Apr 14, 2020

Approving subject to @hawkw's request and the one comment I made about the test :)

Co-Authored-By: David Barsky <me@davidbarsky.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco
Copy link
Member Author

@davidbarsky they are both Fn so I think the docs are fine?

David Barsky and others added 4 commits April 14, 2020 13:00
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco LucioFranco requested a review from davidbarsky April 14, 2020 17:52
LucioFranco and others added 2 commits April 14, 2020 14:00
Co-Authored-By: David Barsky <me@davidbarsky.com>
Co-Authored-By: David Barsky <me@davidbarsky.com>
@LucioFranco LucioFranco requested a review from davidbarsky April 14, 2020 18:00
Co-Authored-By: David Barsky <me@davidbarsky.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-util Area: The tower "util" module C-enhancement Category: A PR with an enhancement or a proposed on in an issue. T-middleware Topic: middleware
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants