Hi Gilles,
Do you think it is big deal to modify Restxq in order to support client mode?
I'm afraid that's probably a bigger issue, as the interpretation of the client request is tightly coupled with the query evaluation process. However, the RESTXQ code itself is pretty compact, so you are invited to have a look at the code base:
https://github.com/BaseXdb/basex-api/tree/master/src/main/java/org/basex/htt...
Best, Christian