Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published