jmkeil opened a new issue, #3679: URL: https://github.com/apache/jena/issues/3679
### Version 5.0.0 ### Feature Hi. Currently, [`HttpException`](https://github.com/apache/jena/blob/b6e6962daeb12ddb2df4672ac7de47c68e8a46a9/jena-arq/src/main/java/org/apache/jena/atlas/web/HttpException.java)s thrown by [`QueryExecHTTP`](https://github.com/apache/jena/blob/b6e6962daeb12ddb2df4672ac7de47c68e8a46a9/jena-arq/src/main/java/org/apache/jena/sparql/exec/http/QueryExecHTTP.java) do not provide access to response headers. This prevents specific handling, like the consideration of [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After). I suggest to extend `HttpException` with a method `getResponseHeaders()` and an according constructor, and to provide the responses [`HttpHeaders`](https://docs.oracle.com/en/java/javase/17/docs/api/java.net.http/java/net/http/HttpHeaders.html) instance during `HttpException` construction in [`HttpLib#handleHttpStatusCode`](https://github.com/apache/jena/blob/b6e6962daeb12ddb2df4672ac7de47c68e8a46a9/jena-arq/src/main/java/org/apac he/jena/http/HttpLib.java#L179) or [`HttpLib#exception`](https://github.com/apache/jena/blob/b6e6962daeb12ddb2df4672ac7de47c68e8a46a9/jena-arq/src/main/java/org/apache/jena/http/HttpLib.java#L279). ### Are you interested in contributing a solution yourself? Perhaps? -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
