1 |
|
2 | import { Options as AsyncOptions } from 'then-request';
|
3 | import { FormData, FormDataEntry } from './FormData';
|
4 | export interface BaseOptions extends Pick<AsyncOptions, 'allowRedirectHeaders' | 'followRedirects' | 'gzip' | 'headers' | 'maxRedirects' | 'maxRetries' | 'qs' | 'json'> {
|
5 | agent?: boolean;
|
6 | cache?: 'file';
|
7 | retry?: boolean;
|
8 | retryDelay?: number;
|
9 | socketTimeout?: number;
|
10 | timeout?: number;
|
11 | body?: string | Buffer;
|
12 | }
|
13 | export interface Options extends BaseOptions {
|
14 | form?: FormData;
|
15 | }
|
16 | export interface MessageOptions extends BaseOptions {
|
17 | form?: FormDataEntry[];
|
18 | }
|