2 个仓库
Differentiating between various types of network failures, such as timeouts versus manual cancellations.
Distinct from HTTP Error Handling: Focuses on error type identification (type guards) rather than general abortion or status codes
Explore 2 awesome GitHub repositories matching web development · Network Error Identification. Refine with filters or upvote what's useful.
Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js environments. It functions as a multi-environment network adapter that abstracts the transport layer to ensure consistent behavior across different runtimes. The project distinguishes itself through a request lifecycle management system that allows for the cancellation of active requests, the setting of timeouts, and the monitoring of upload and download transfer progress. It includes a mechanism for intercepting network traffic, enabling the transformation of outgoing requests and inco
Distinguishes between network-level errors and request cancellations using type guards for targeted handling.
Wretch 是一个可链式的 HTTP 客户端库与 Fetch API 封装器,旨在简化网络请求配置、响应解析与错误处理。它作为网络请求管理器与中间件框架,用于管理 HTTP 调用的端到端生命周期。 该项目以用于请求配置的流畅接口与模块化扩展系统而著称。它利用可编程的响应解析器来自动化解析,并利用插件式架构为请求与响应对象添加新能力。 该库涵盖了广泛的运营能力,包括带有指数退避的自动请求重试、响应缓存与请求去重。它提供了用于动态负载序列化、响应模式验证的工具,以及用于全局数据转换与请求监控的中间件流水线。安全特性包括基础认证支持与自动令牌刷新。 该库支持自定义 fetch 实现,以确保在不同环境下的兼容性。
Differentiates between low-level network failures, such as connection timeouts, and standard HTTP status code errors.