magutierrm opened a new issue, #1993:
URL: https://github.com/apache/jena/issues/1993

   ### Version
   
   4.9.0
   
   ### Question
   
   Hello,
   Starting from version 4.3.0, `java.net.HttpClient` is used as the HTTP 
client instead of `org.apache.http.client`. Previously, if you wanted to sign 
your requests, you could intercept them and add the signed HTTP headers using 
methods provided by the Apache HTTP client.
   However, with `java.net.HttpClient`, there is no straightforward way to 
achieve this. Is it possible to accomplish this using 
`org.apache.jena.http.sys.RegistryRequestModifier`?
   I am doing something like this:
   ```java
           Map<String, String> signedHeaders = getAwsHeaders();
           HttpRequestModifier modifier = (params, headers) -> 
headers.putAll(signedHeaders);
           
RegistryRequestModifier.get().addPrefix("https://my-neptune-cluster.neptune.amazonaws.com:8182";,
 modifier);
   ```
   However, when I check the logs of my requests, I don't see any headers added.
   
   Thank you in advance.


-- 
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]

Reply via email to