Interface HttpTelegramInstance

interface HttpTelegramInstance {
    defaults: Omit<AxiosDefaults<any>, "headers"> & {
        headers: HeadersDefaults & {
            [key: string]: AxiosHeaderValue;
        };
    };
    interceptors: {
        request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
        response: AxiosInterceptorManager<AxiosResponse<any, any>>;
    };
    delete<T, R, D>(url, config?): Promise<R>;
    get<T, R, D>(url, config?): Promise<R>;
    getUri(config?): string;
    head<T, R, D>(url, config?): Promise<R>;
    options<T, R, D>(url, config?): Promise<R>;
    patch<T, R, D>(url, data?, config?): Promise<R>;
    patchForm<T, R, D>(url, data?, config?): Promise<R>;
    post<T, R, D>(url, data?, config?): Promise<R>;
    postForm<T, R, D>(url, data?, config?): Promise<R>;
    put<T, R, D>(url, data?, config?): Promise<R>;
    putForm<T, R, D>(url, data?, config?): Promise<R>;
    request<T, R, D>(config): Promise<R>;
    <T, R, D>(config): Promise<R>;
    <T, R, D>(url, config?): Promise<R>;
}

Hierarchy

  • Axios
    • HttpTelegramInstance
  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

Properties

defaults: Omit<AxiosDefaults<any>, "headers"> & {
    headers: HeadersDefaults & {
        [key: string]: AxiosHeaderValue;
    };
}

Type declaration

  • headers: HeadersDefaults & {
        [key: string]: AxiosHeaderValue;
    }
interceptors: {
    request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
    response: AxiosInterceptorManager<AxiosResponse<any, any>>;
}

Type declaration

  • request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>
  • response: AxiosInterceptorManager<AxiosResponse<any, any>>

Methods

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Parameters

    • Optional config: AxiosRequestConfig<any>

    Returns string

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • config: AxiosRequestConfig<D>

    Returns Promise<R>

Generated using TypeDoc