xrc

Homepage: https://github.com/spacebat/xrc

Author: Andrew Kirkpatrick

Updated:

Summary

Syntax sugar and other goodies for working with xml-rpc.el

Commentary

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 caller :url "http://hostname:port/path")
(caller 'method "arg")
(caller 'other-method "other-arg")

Its syntactical sugar that makes a difference for exploratory
programming, but could also provide benefits such as sanity checks
on method names an 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.

To install, once xrc.el is located somewhere in your
load-path, you can add this to your initialization file:

(require 'xrc)

TODO: implement with-xrc-endpoint macro for that extra caramel malt
topping. You know, maltose has a glycaemic index of around 110

Local Variables:
lexical-binding: t
End:

Dependencies

Reverse dependencies