(triggered by the question on users@ about RDFConnection and HttpClient => JENA-1330)

Q:
For API operations that take an HttpClient argument, should there always be a variant that accepts an HttpClient and a HttpContext?

From looking at the code, there is also a possible HttpContext to apply to use of HttpClient. It means one HttpClient can be reused in different ways with different HttpContexts.


Also (OK - this is a second question :-)

HttpClientContext seems to be a wrapper of an HttpContext to provide convenient names and typesafe operations on an existing HttpContext.

If so, HttpQuery (etc) should have a HttpContext, not a HttpClientContext, and adapt the HttpContext at the point of applying operations?

    Andy

Reply via email to