Skip to content

Added extra information (URL, method, status, headers, etc.) to policies so they can decide on that#283

Open
andyolivares wants to merge 2 commits intoTrueLayer:mainfrom
andyolivares:request_response_extras
Open

Added extra information (URL, method, status, headers, etc.) to policies so they can decide on that#283
andyolivares wants to merge 2 commits intoTrueLayer:mainfrom
andyolivares:request_response_extras

Conversation

@andyolivares
Copy link
Copy Markdown

@andyolivares andyolivares commented May 4, 2026

In order to solve #247 I've added extra information for policies to be able to decide on that.

I've added request URL, method and headers. Also added response status, and headers.
To do this, I had to modify TrueLayer/retry-policies repository and added an extras parameter. See TrueLayer/retry-policies#30.

In my particular case, I needed a way to make a custom policy to be able to decide on whether a response header is present or not.

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