Interface HttpTelegramInternalReqConfig

interface HttpTelegramInternalReqConfig {
    adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
    auth?: AxiosBasicCredentials;
    axios-retry?: IAxiosRetryConfig;
    baseURL?: string;
    beforeRedirect?: ((options, responseDetails) => void);
    cancelToken?: CancelToken;
    customMeta?: Record<string, unknown>;
    data?: any;
    decompress?: boolean;
    domain?: string | symbol;
    env?: {
        FormData?: (new (...args) => object);
    };
    family?: AddressFamily;
    formSerializer?: FormSerializerOptions;
    headers: AxiosRequestHeaders;
    httpAgent?: any;
    httpsAgent?: any;
    insecureHTTPParser?: boolean;
    lookup?: ((hostname, options, cb) => void) | ((hostname, options) => Promise<LookupAddress | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]>);
    maxBodyLength?: number;
    maxContentLength?: number;
    maxRate?: number | [number, number];
    maxRedirects?: number;
    method?: string;
    onDownloadProgress?: ((progressEvent) => void);
    onUploadProgress?: ((progressEvent) => void);
    params?: any;
    paramsSerializer?: CustomParamsSerializer | ParamsSerializerOptions;
    paths?: Record<string, string>;
    proxy?: false | AxiosProxyConfig;
    responseEncoding?: string;
    responseType?: ResponseType;
    signal?: GenericAbortSignal;
    socketPath?: null | string;
    timeout?: number;
    timeoutErrorMessage?: string;
    transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
    transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
    transitional?: TransitionalOptions;
    transport?: any;
    url?: string;
    validateStatus?: null | ((status) => boolean);
    withCredentials?: boolean;
    withXSRFToken?: boolean | ((config) => undefined | boolean);
    xsrfCookieName?: string;
    xsrfHeaderName?: string;
}

Hierarchy (view full)

Properties

adapter?: AxiosAdapterConfig | AxiosAdapterConfig[]
auth?: AxiosBasicCredentials
axios-retry?: IAxiosRetryConfig
baseURL?: string
beforeRedirect?: ((options, responseDetails) => void)

Type declaration

    • (options, responseDetails): void
    • Parameters

      • options: Record<string, any>
      • responseDetails: {
            headers: Record<string, string>;
            statusCode: HttpStatusCode;
        }
        • headers: Record<string, string>
        • statusCode: HttpStatusCode

      Returns void

cancelToken?: CancelToken
customMeta?: Record<string, unknown>

自定义元数据

data?: any
decompress?: boolean
domain?: string | symbol
env?: {
    FormData?: (new (...args) => object);
}

Type declaration

  • Optional FormData?: (new (...args) => object)
      • new (...args): object
      • Parameters

        • Rest ...args: any[]

        Returns object

family?: AddressFamily
formSerializer?: FormSerializerOptions
headers: AxiosRequestHeaders
httpAgent?: any
httpsAgent?: any
insecureHTTPParser?: boolean
lookup?: ((hostname, options, cb) => void) | ((hostname, options) => Promise<LookupAddress | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]>)

Type declaration

    • (hostname, options, cb): void
    • Parameters

      • hostname: string
      • options: object
      • cb: ((err, address, family?) => void)
          • (err, address, family?): void
          • Parameters

            • err: null | Error
            • address: LookupAddress | LookupAddress[]
            • Optional family: AddressFamily

            Returns void

      Returns void

Type declaration

    • (hostname, options): Promise<LookupAddress | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]>
    • Parameters

      • hostname: string
      • options: object

      Returns Promise<LookupAddress | [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]>

maxBodyLength?: number
maxContentLength?: number
maxRate?: number | [number, number]
maxRedirects?: number
method?: string
onDownloadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      • progressEvent: AxiosProgressEvent

      Returns void

onUploadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      • progressEvent: AxiosProgressEvent

      Returns void

params?: any
paramsSerializer?: CustomParamsSerializer | ParamsSerializerOptions
paths?: Record<string, string>
proxy?: false | AxiosProxyConfig
responseEncoding?: string
responseType?: ResponseType
signal?: GenericAbortSignal
socketPath?: null | string
timeout?: number
timeoutErrorMessage?: string
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]
transitional?: TransitionalOptions
transport?: any
url?: string
validateStatus?: null | ((status) => boolean)

Type declaration

    • (status): boolean
    • Parameters

      • status: number

      Returns boolean

withCredentials?: boolean
withXSRFToken?: boolean | ((config) => undefined | boolean)

Type declaration

    • (config): undefined | boolean
    • Parameters

      • config: InternalAxiosRequestConfig<any>

      Returns undefined | boolean

xsrfCookieName?: string
xsrfHeaderName?: string

Generated using TypeDoc