Skip to main content

HttpResponse<T>

type HttpResponse<T> = {
data: T;
headers: Record<string, string>;
status: number;
statusText: string;
};

HTTP response type that replaces AxiosResponse

Type Parameters​

Type ParameterDefault type
Tunknown

Properties​

data​

data: T;

headers​

headers: Record<string, string>;

status​

status: number;

statusText​

statusText: string;