afs commented on issue #1993:
URL: https://github.com/apache/jena/issues/1993#issuecomment-1682859411

   > `HttpClient httpClient = HttpClient.newBuilder().build();`
   > `       HttpResponse<String> response = httpClient.send(`
   
   There isn't any Jena code there : `RegistryRequestModifier` is a Jena 
feature.
   
   Example:
   ```java
           HttpRequestModifier modifier = (params, headers) -> {
               System.err.println("CALLED");
               //headers.put("x-test", "test");
           };
   
           String URL = "https://github.com/status/";;
           RegistryRequestModifier.get().addPrefix(URL, modifier);
   
           try {
               RDFConnection conn = 
RDFConnectionRemote.service("https://github.com/status";)
                       .queryEndpoint("query")
                       .build();
               conn.query("ASK{}").execAsk();
           } catch (QueryExceptionHTTP ex) {
               if ( 404 != ex.getStatusCode() )
                   System.err.print("Expected status code 404. Got 
"+ex.getStatusCode());
           }
   
           System.out.println("DONE");
           System.exit(0);
   
   ```
   It only seems to work for query and update, not GSP/DSP which probably is a 
bug.
   
   What operations are your trying to use?


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