@bmqube/xmlrpc
Version:
A pure TypeScript XML-RPC client and server. Forked from (https://github.com/baalexander/node-xmlrpc)
20 lines (19 loc) • 672 B
text/typescript
type Encoding = BufferEncoding | undefined;
/**
* Creates the XML for an XML-RPC method call.
*/
export declare function serializeMethodCall(method: string, paramsInput?: any[], encoding?: Encoding): string;
/**
* Creates the XML for an XML-RPC method response.
*/
export declare function serializeMethodResponse(result: any): string;
/**
* Creates the XML for an XML-RPC fault response.
*/
export declare function serializeFault(fault: any): string;
declare const Serializer: {
serializeMethodCall: typeof serializeMethodCall;
serializeMethodResponse: typeof serializeMethodResponse;
serializeFault: typeof serializeFault;
};
export default Serializer;