UNPKG

@foxglove/xmlrpc

Version:

TypeScript library implementing an XMLRPC client and server with pluggable server backend

34 lines (28 loc) 609 B
import { HttpRequest } from "./HttpTypes"; import { XmlRpcFault } from "./XmlRpcFault"; export type XmlRpcValue = | undefined | boolean | number | string | Date | Uint8Array | XmlRpcValue[] | XmlRpcStruct; export type XmlRpcStruct = { [key: string]: XmlRpcValue }; export type Encoding = | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; export type XmlRpcMethodHandler = ( methodName: string, args: XmlRpcValue[], req?: HttpRequest, ) => Promise<XmlRpcValue>; export type XmlRpcValueOrFault = XmlRpcValue | XmlRpcFault;