https://github.com/spacebat/xrc
Syntax sugar and other goodies for working with xml-rpc.el
https://github.com/spacebat/xrc
Last synced: 5 months ago
JSON representation
Syntax sugar and other goodies for working with xml-rpc.el
- Host: GitHub
- URL: https://github.com/spacebat/xrc
- Owner: spacebat
- Created: 2013-04-07T12:00:18.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-07T12:21:09.000Z (about 13 years ago)
- Last Synced: 2025-06-04T21:43:36.995Z (about 1 year ago)
- Language: Emacs Lisp
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
xrc
===
Syntax sugar and other goodies for working with xml-rpc.el
Using xml-rpc is prone to code like:
(setq myurl "http://hostname:port/path")
(xml-rpc-method-call myurl 'method "arg")
(xml-rpc-method-call myurl 'other-method "other-arg")
This library lets us instead write:
(xrc-defcaller service :url "http://hostname:port/path")
(service 'method "arg")
(service 'other-method "other-arg")
Sure that doesn't look much shorter but it adds up. The syntactical sugar makes a difference for exploratory programming, but could also provide benefits such as sanity checks on method names and arguments for XML-RPC services.
Append :checked-p t to the end of the xrc-defcaller line to have an error raised immediately by the library if a method is called that is not supported by the endpoint.