5 个仓库
Middleware that catches script-level exceptions during request processing to prevent complete network failures.
Distinct from Request & Response Handling: Specifically targets the interception of script runtime errors within the request pipeline, distinct from general 404 route handling.
Explore 5 awesome GitHub repositories matching web development · Execution Error Interception. Refine with filters or upvote what's useful.
GraphQL-Ruby is a Ruby library for building GraphQL APIs with a strongly typed schema and a dedicated query execution engine. It provides a comprehensive framework for mapping application objects to a formal type system, enabling structured data fetching through defined resolvers. The project distinguishes itself with advanced performance and delivery mechanisms, including a data loader for batching and caching to prevent N+1 query patterns. It supports high-performance data delivery through incremental response streaming, deferred query responses, and parallel data fetching using fibers. Add
Intercepts exceptions during field resolution to report metrics or provide fallback values without failing the request.
Oak 是一个跨运行时的 HTTP 中间件框架和 Web 服务器,旨在跨 Deno、Node.js、Bun 和 Cloudflare Workers 运行。它提供了一个统一的系统,通过中间件函数的顺序链和分层路由引擎来构建 API 和 Web 服务器,该引擎通过嵌套树结构将 URL 路径映射到处理程序。 该框架包括一个与运行时无关的无服务器适配器,可将不同的云提供商事件转换为标准的请求和响应接口。它还具有专用的 WebSocket 服务器实现,用于双向实时通信,以及一个利用异步 Cookie 签名和持久存储的 Web 会话管理器。 该项目涵盖了广泛的服务器功能,包括静态文件服务、内容协商和多部分数据解析。其安全和观测能力包括用于验证 JSON Web Token、配置安全标头、记录 HTTP 流量以及模拟应用程序请求以进行测试的工具。
Includes middleware that intercepts uncaught exceptions during the request pipeline to provide centralized error responses.
Salvo 是一个全面的 Rust Web 框架,用于构建异步 HTTP 服务器和 Web 应用。它具有一个分层 Web 路由器(使用树状结构将请求映射到处理程序)和一个基于洋葱模型的异步中间件流水线(用于请求和响应的预处理和后处理)。 该框架以其对现代网络协议的原生支持而著称,包括基于 QUIC 的 HTTP/3 实现以及 HTTP/1 和 HTTP/2。它包括一个集成的 OpenAPI 文档生成器,可直接从处理程序签名中提取模式,以生成标准化的 API 规范和交互式界面。此外,它通过 ACME 集成提供自动 TLS 管理,以获取和续订安全证书。 该项目涵盖了广泛的功能,包括通过 WebSocket 和 WebTransport 进行的实时通信,以及带有请求代理和路径重写的 API 网关功能。它内置了对会话管理、类型安全参数提取以及通过 OpenTelemetry 集成进行可观测性的支持。内容交付通过静态文件服务和动态 HTML 模板处理。 提供了一个用于引导新项目结构的命令行工具。
Provides middleware to catch runtime exceptions during request processing to return custom error responses.
Script-Hub is a system for translating proxy rule sets and converting configuration modules between different network proxy environments. It serves as a translator and converter that enables cross-platform compatibility for rewrite rules and script-based logic. The project includes a script interop layer that normalizes header casing and handles execution errors to ensure scripts run consistently across different tools. It also provides a remote configuration manager for importing, updating, and modifying proxy modules and parameters via web URLs. The software covers a range of capabilities
Provides a protective middleware layer that intercepts script execution errors to prevent network interruptions during request processing.
Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and Bash compatibility. It functions as a structured data shell, integrating JSON and J8 formats to manage complex data without relying on string parsing. The system is distinguished by a C++ transpiled interpreter that converts a subset of Python source code into strongly typed C++ for high-performance execution. It features a garbage-collected typed runtime that supports prototype-based polymorphism, lexical closures, and reference-based variable mutation. To decouple shell logic
Intercepts command or expression failures using a try block and provides an error variable for inspection.