StaticBlog.Web.XmlRpc (StaticBlog v0.2.0)

Copy Markdown View Source

XML-RPC shim that lets MarsEdit list and fetch posts from this blog.

Implements just enough of the micro.blog / MetaWeblog / WordPress XML-RPC vocabulary for MarsEdit to function.

Summary

Functions

Handle a single XML-RPC method call.

Types

fault()

@type fault() :: {:fault, integer(), String.t()}

Functions

dispatch(method, params)

@spec dispatch(String.t(), list()) :: {:ok, term()} | fault()

Handle a single XML-RPC method call.

Arguments

  • method_name is the XML-RPC method name.

  • params is the decoded parameter list from XMLRPC.MethodCall.

Returns

  • {:ok, value} where value is the Elixir term to encode as the <methodResponse> payload.

  • {:fault, code, message} for method-not-found and other protocol errors.