MCPcopy
hub / github.com/axios/axios / handleResponse

Function handleResponse

tests/module/esm/tests/helpers/esm-index.ts:72–78  ·  view source on GitHub ↗
(response: AxiosResponse)

Source from the content-addressed store, hash-verified

70};
71
72const handleResponse = (response: AxiosResponse) => {
73 console.log(response.data);
74 console.log(response.status);
75 console.log(response.statusText);
76 console.log(response.headers);
77 console.log(response.config);
78};
79
80const handleError = (error: AxiosError) => {
81 if (error.response) {

Callers 1

requestFunction · 0.50

Calls

no outgoing calls

Tested by 1

requestFunction · 0.40