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

Refactor UriEndpoint #2700

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuzawa-san
Copy link
Contributor

@yuzawa-san yuzawa-san commented Feb 20, 2023

Clean up UriEndpoint logic to be based around the java.net.URI and to avoid reparsing at various points in the client request process. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query.

Fixes #829

yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Feb 20, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from 70bd5ab to 2c6249f Compare February 20, 2023 23:32
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Feb 20, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from 2c6249f to 22b04c2 Compare February 20, 2023 23:42
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Feb 21, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from 22b04c2 to fa0a47f Compare February 21, 2023 00:17
@violetagg
Copy link
Member

@yuzawa-san I'm gonna take a look at this

yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Mar 3, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from fa0a47f to fa714ad Compare March 3, 2023 00:12
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Mar 15, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from fa714ad to 02f9ae6 Compare March 15, 2023 02:01
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Mar 19, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from 02f9ae6 to e241f5f Compare March 19, 2023 21:18
@violetagg violetagg self-requested a review March 20, 2023 07:39
@violetagg violetagg added the type/enhancement A general enhancement label Mar 29, 2023
@violetagg violetagg added this to the 1.0.31 milestone Mar 29, 2023
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Mar 30, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from e241f5f to 7531e2f Compare March 30, 2023 01:30
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Apr 4, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from 7531e2f to df1387f Compare April 4, 2023 00:43
@violetagg violetagg modified the milestones: 1.0.31, 1.0.32 Apr 6, 2023
yuzawa-san added a commit to yuzawa-san/reactor-netty that referenced this pull request Apr 18, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from df1387f to 1dbefb7 Compare April 18, 2023 01:41
@violetagg violetagg modified the milestones: 1.0.32, 1.0.33 May 2, 2023
Clean up UriEndpoint logic to be based around the java.net.URI. Move relevant methods into this class. Construct instances using static method. Only calculate derived values on demand (e.g. toExternalForm) when needed in the various request implementations. Cleaned up redirection logic. Added additional tests. Made conversion from InetSocketAddress more efficient (removed the substrings which trimmed out the ports). Fixed HttpClientTest to support ipv6 (by using NetUtil.toSocketAddressString to get the [] around the address, and also fixed FailedHttpClientRequest.uri() from returning full URI rather than just Netty definition of "uri" which is raw path and query. Fixed ClientTransportTest to support ipv6.

Fixes reactor#829
@yuzawa-san yuzawa-san force-pushed the 829-refactor-UriEndpoint branch from 1dbefb7 to 00f28cc Compare May 16, 2023 12:04
@violetagg
Copy link
Member

@yuzawa-san I'm gonna review this for 1.0.33

@violetagg violetagg removed this from the 1.0.33 milestone Jun 2, 2023
@violetagg violetagg modified the milestones: 1.1.8, 1.1.9 Jun 2, 2023
@violetagg violetagg modified the milestones: 1.1.9, 1.1.x Backlog Jun 29, 2023
@violetagg violetagg modified the milestones: 1.1.x Backlog, 1.2.x Backlog Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revise UriEndpointFactory/UriEndpoint
2 participants