davsclaus commented on PR #25162:
URL: https://github.com/apache/camel/pull/25162#issuecomment-5093504056

   Thanks for the review @gnodet — addressed both observations:
   
   1. **Test coverage**: Moved `extractPlatformHttpPath` and 
`extractHttpMethod` to a new `HttpHelper` utility class (package-private) and 
added `HttpHelperTest` with 6 test cases covering the URI parsing logic.
   
   2. **HTTP client code duplication**: Extracted the shared HTTP 
request/response cycle into `HttpHelper.sendRequest()` with a simple 
`HttpResult` record. Both `SendMessagePopup` and `HttpTab` now delegate to it, 
removing ~50 lines of duplicated boilerplate from each.
   
   _Claude Code on behalf of davsclaus_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to