(url: string, data: Dict = {}, method: HttpMethod = 'GET', key?: string)
| 503 | } |
| 504 | |
| 505 | reqObj(url: string, data: Dict = {}, method: HttpMethod = 'GET', key?: string) { |
| 506 | return { |
| 507 | url: url, |
| 508 | qs: data, |
| 509 | method: method, |
| 510 | family: this.Options.family, |
| 511 | localAddress: this.Options.localAddress, |
| 512 | timeout: this.Options.recvWindow, |
| 513 | forever: this.Options.keepAlive, |
| 514 | headers: { |
| 515 | 'User-Agent': this.userAgent, |
| 516 | 'Content-type': this.contentType, |
| 517 | 'X-MBX-APIKEY': key || '' |
| 518 | } |
| 519 | }; |
| 520 | } |
| 521 | |
| 522 | reqObjPOST(url: string, data: Dict = {}, method = 'POST', key: string) { |
| 523 | return { |
no outgoing calls
no test coverage detected