Skip to content

[EndpointUri PR 2/4] Switch runtime consumers to EndpointUrl#7158

Merged
alextwoods merged 2 commits into
feature/master/endpoint-remove-urifrom
alexwoo/endpoint-remove-uri-pr2
Jul 17, 2026
Merged

[EndpointUri PR 2/4] Switch runtime consumers to EndpointUrl#7158
alextwoods merged 2 commits into
feature/master/endpoint-remove-urifrom
alexwoo/endpoint-remove-uri-pr2

Conversation

@alextwoods

@alextwoods alextwoods commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

This is PR 2/4 for replacing Uri.create in endpoint resoultion with the light weight EndpointUrl.

Note: This PR merges to feature/master/endpoint-remove-uri and NOT to master

Previous PRs:

Modifications

Switch runtime consumers to use EndpointUrl:

  • Update addHostPrefix to work with EndpointUrl components, preserving query and fragment
  • Switch EndpointResolutionStage to call endpoint.endpointUrl() instead of endpoint.url(), eliminating URI construction from the request pipeline when the resolved endpoint is consumed.

Testing

New and existing tests.

Screenshots (if appropriate)

License

  • I confirm that this pull request can be released under the Apache 2 license

@alextwoods
alextwoods requested a review from a team as a code owner July 16, 2026 19:35
…date EndpointResolutionStage to call endpoint.endpointUrl() instead of endpoint.url(), eliminating URI construction from the request pipeline hot path. Update addHostPrefix in AwsEndpointProviderUtils to use EndpointUrl components directly, preserving query and fragment via EndpointUrl.fromComponents(5-arg). Add tests for port propagation and encoded path preservation.
@alextwoods
alextwoods force-pushed the alexwoo/endpoint-remove-uri-pr2 branch from 9df96a8 to aed84e8 Compare July 16, 2026 20:26
}

@Test
void execute_resolvedEndpointWithPort_appliesPort() throws Exception {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There are a number of existing tests that cover the setUri behavior, this is just adding coverage for a few cases that weren't well covered before.

@alextwoods
alextwoods requested a review from RanVaknin July 16, 2026 21:37
@alextwoods
alextwoods merged commit 1bfd0c0 into feature/master/endpoint-remove-uri Jul 17, 2026
3 of 4 checks passed
@alextwoods
alextwoods deleted the alexwoo/endpoint-remove-uri-pr2 branch July 17, 2026 20:45
@github-actions

Copy link
Copy Markdown

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants