Skip to content

Added "extras" hash map to be able to create policies that could decide using additional information#30

Open
andyolivares wants to merge 1 commit into
TrueLayer:mainfrom
andyolivares:retry_policy_with_extras
Open

Added "extras" hash map to be able to create policies that could decide using additional information#30
andyolivares wants to merge 1 commit into
TrueLayer:mainfrom
andyolivares:retry_policy_with_extras

Conversation

@andyolivares
Copy link
Copy Markdown

@andyolivares andyolivares commented May 4, 2026

In order to make custom policies decide on additional information, like request/response headers, I've added an optional extras parameter as a HashMap<String, String>.

This seems to be the more flexible way for reqwest-middleware implementations (or other users of this crate) to supply additional information without coupling to reqwest specific structs (like reqwest:Request and reqwest:Response).

I needed this change to be able to solve TrueLayer/reqwest-middleware#247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant