fetch-axios
fetch-axios like axios implement with fetch api
usage
;;;fetchApi.config; ;; fetchApi.addRequestInterceptorreqAop;fetchApi.addResponseInterceptorresAop; ;
design
/** * design * |-----custom transform FaxiosRequest ---->|or|-----global transform FaxiosRequest ---->| * |--------request interceptor ------------>| * |-------FaxiosRequest => Request -------->| * |-----------before request -------------->| * |--------_ window.fetch(Request)----_---->| * |-----------after request --------------->| * |------Response => FaxiosResponse ------->| * |--------response interceptor ----------->| * |-----custom transform FaxiosResponse---->|or|-----global transform FaxiosRequest ---->| */
api types
;;
faxios api
;