Interface AxiosResponse<T, D>

interface AxiosResponse<T = any, D = any> {
    config: InternalAxiosRequestConfig<D>;
    data: T;
    headers:
        | AxiosResponseHeaders
        | Partial<
            RawAxiosHeaders & {
                "Cache-Control": AxiosHeaderValue;
                "Content-Encoding": AxiosHeaderValue;
                "Content-Length": AxiosHeaderValue;
                "Content-Type": AxiosHeaderValue;
                Server: AxiosHeaderValue;
            } & { "set-cookie": string[] },
        >;
    request?: any;
    status: number;
    statusText: string;
}

Type Parameters

  • T = any
  • D = any

Properties

data: T
headers:
    | AxiosResponseHeaders
    | Partial<
        RawAxiosHeaders & {
            "Cache-Control": AxiosHeaderValue;
            "Content-Encoding": AxiosHeaderValue;
            "Content-Length": AxiosHeaderValue;
            "Content-Type": AxiosHeaderValue;
            Server: AxiosHeaderValue;
        } & { "set-cookie": string[] },
    >
request?: any
status: number
statusText: string