Asynchronous I/O that doesn’t get in your way, written in D
Class RestInterfaceClient
Implements the given interface by forwarding all public methods to a REST server.
classRestInterfaceClient(I)
;
The server must talk the same protocol as registerRestInterface() generates. Be sure to set
the matching method style for this. The RestInterfaceClient class will derive from the
interface that is passed as a template argument. It can be used as a drop-in replacement
of the real implementation of the API this way.
Non-success:
If a request failed, timed out, or the server returned an non-success status code,
an RestException will be thrown.