Skip to content

Conversation

@JordonPhillips
Copy link
Contributor

This decouples endpoint resolution from http. It does this by using the new Endpoint interface that has a typed properties bag. HTTP endpoint providers MAY add a "headers" property that will be merged into the request's headers.

The input of endpoint resolvers was simplified to be a standard param bundle that should contain anything they could possibly want. This includes the context properties for the invocation, so more stuff can be added there by interceptors. The config object is added as standard to the properties bag, but it's loosely typed since it's a generated type. The endpoint uri is added in a strongly typed way, though I had to play a bit fast and loose with pyright to get it to work with unions.

I also updated the formatting to remove unused imports because that makes the process of changing the default endpoint provider less painful.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@JordonPhillips JordonPhillips requested a review from a team as a code owner March 19, 2025 17:29
haydenbaker
haydenbaker previously approved these changes Mar 19, 2025
@JordonPhillips JordonPhillips merged commit 9c80e0a into develop Mar 20, 2025
2 checks passed
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.

3 participants