fetch based HTTP client for the browser, node.js, and bun.js.
WHY http-pro?
similar syntax to Axios.
Better Typescript support than default fetch API.
Works well with URL, Header, URLSearchParams, and Request Object.
Instance and extending instances with defaults.
interceptor function.
validate your response with zod and yup.
Why Http pro over axios?
axios uses XMLHttpRequests in browser. so it can't leverage all the new features that javascript provides with fetch-api. for example, axios does not support the Header, Request Objects.
axios does not does not support service workers and Cache API out of the box.