More options for http-client?
Tuesday, 10 October 2023 · 2 messages · last reply 15 Oct 2023
AN
Andreas Hengsbach | nexoma10 Oct 2023 17:50 #
Hi Christian,
are there any plans for the http client to become even more configurable?
I have seen in the BaseX sources that the HttpClient.Builder (org.basex.io.IOUrl:173) is mostly served with standards. (except sslContext, connectTimeout, followRedirects).
For example, I have a special case where I need to force the version to HTTP/1.1.
Tried as a workaround to create my own instance via HttpClient.Builder using the XQuery Java binding, but failed on the interfaces.
Thanks a lot
Andreas
CG
Christian Grün15 Oct 2023 13:39 #
Hi Andreas,
are there any plans for the http client to become even more configurable?
Quoted text · Andreas Hengsbach | nexoma · 1 line
>
Currently no, but it would certainly be possible, given that we’ve recently added some BaseX-specific options to handle CSV, JSON and HTML input. Finalizing version 2 of the spec would still be a better option [1], but we haven’t found enough time for it yet.
Best,
Christian
[1] https://expath.github.io/expath-cg/specs/http-client-2/
Quoted text · Andreas Hengsbach | nexoma · 24 lines
> > > I have seen in the BaseX sources that the HttpClient.Builder > (org.basex.io.IOUrl:173) is mostly served with standards. (except > sslContext, connectTimeout, followRedirects). > > > > For example, I have a special case where I need to force the version to > HTTP/1.1. > > > > Tried as a workaround to create my own instance via HttpClient.Builder > using the XQuery Java binding, but failed on the interfaces. > > > > > > Thanks a lot > > Andreas >
Written for BaseX 10.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery