(IHttpRequestResponse basePair, String url)
| 69 | } |
| 70 | |
| 71 | private IHttpRequestResponse fetchURL(IHttpRequestResponse basePair, String url) { |
| 72 | String path = Utilities.helpers.analyzeRequest(basePair).getUrl().getPath(); |
| 73 | String newReq = safeBytesToString(basePair.getRequest()).replaceFirst(path, url); |
| 74 | return Utilities.callbacks.makeHttpRequest(basePair.getHttpService(), newReq.getBytes()); |
| 75 | } |
| 76 | |
| 77 | // Placeholder methods for helpers and callbacks, assumed to be provided elsewhere |
| 78 | static String safeBytesToString(byte[] bytes) { |
no test coverage detected