More options for http-client?
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
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
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.