UNPKG

@aptpod/iscp-ts

Version:

iSCP 2.0 client library for TypeScript

37 lines 742 B
import { stringify } from 'qs'; /** * エンコーディングの名前です。 * @category Enum * @enum */ export const ENCODING_NAME = { /** * ProtocolBuffer。 */ PROTOBUF: 'proto', /** * JSON。 */ JSON: 'json', }; /** * ネゴシエーションパラメータを表します。 * @category Connector */ export class NegotiationParams { constructor() { /** * エンコーディング名です。 */ this.enc = ENCODING_NAME.PROTOBUF; } /** * URLパラメータにエンコードします。 */ encodeURLValues() { return stringify({ enc: this.enc, }); } } //# sourceMappingURL=negotiation-params.js.map