-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
align connection options and allow override of protocol from env #305
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If its necessary it should be mentioned here https://github.com/eXist-db/node-exist#rest . Having both environmentOptions.secure
and environmentOptions.protocol
isn't self-evident
This is needed to allow REST connections using `http:` to override the default (`https:`).
6993c4b
to
a7076a9
Compare
@duncdrum I just re-read the section explaining the REST endpoint and agree that it should include a section how to configure that connection - by hand - and also point out that the options returned from |
Both REST and XML-RPC now have the same set of default options. The boolean option `secure` can still be used to control XMLRPC client, but `protocol` is the preferred way. This allows to use the same set of options for both client constructors. Add test to ensure legacy option is still working.
- fix TOC - rename and improve Configuration section to Connection Options - clarify wording in Use - REST - clarify that Components is using XML-RPC
@duncdrum your demand to better document connection options lead to a serious quality of life improvement :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice this looks much better now
🎉 This PR is included in version 5.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Features
aligned connection options allows to use the same options for both APIs, REST and XML-RPC
The legacy option
{ secure: true|false }
will now work for both APIs as setting the protocol does.{ protocol: "https:"|"http:" }
is now the preferred way to switch between encrypted and unencryptedconnections and works for both APIs.
Fixes
REST connection options read from environment can override default protocol (
https:
)Documentation
clarify connection options and usage - fixes #240