UNPKG

cloudworker-proxy

Version:
29 lines (25 loc) 630 B
'use strict'; const HttpProfile = require('./http_profile'); /** * 可选参数类 * @class */ class ClientProfile { /** * @param {string} signMethod 签名方法,当前支持(HmacSHA1 HmacSHA256) * @param {HttpProfile} httpProfile http相关选项实例 */ constructor(signMethod, httpProfile) { /** * 签名方法,当前支持(HmacSHA1 HmacSHA256) * @type {string} */ this.signMethod = signMethod || 'HmacSHA256'; /** * http相关选项实例 * @type {httpProfile} */ this.httpProfile = httpProfile || new HttpProfile(); } } module.exports = ClientProfile;