5 个仓库
Functions that execute logic during the request-response lifecycle of an application.
Explore 5 awesome GitHub repositories matching networking & communication · Application Middleware. Refine with filters or upvote what's useful.
Express is a minimalist web server framework that provides a foundational runtime environment for building backend web APIs and applications. It operates through a central application object that orchestrates the entire request-response lifecycle, allowing developers to define routes, manage server settings, and process incoming HTTP traffic. The framework is defined by its middleware-based routing engine, which sequences request handlers and logic blocks to process traffic based on path patterns and HTTP methods. This architecture supports a highly modular approach, enabling the creation of
Binds modular logic directly to the request-response lifecycle to process incoming traffic.
Starlette is a lightweight ASGI web framework and asynchronous HTTP toolkit used to build high-performance HTTP and WebSocket services. It functions as a WebSocket server framework and a collection of ASGI middleware components for managing network requests through non-blocking asynchronous logic. The framework provides tools for real-time communication via persistent bidirectional channels and infrastructure for high-performance APIs. It includes specialized capabilities for response compression, incremental data streaming, and the execution of non-blocking background tasks after a response
Offers a collection of ASGI middleware for managing session state, CORS, and request-response lifecycles.
gqlgen is a schema-first Go library designed to build type-safe GraphQL servers. It functions as a code generation engine that transforms declarative GraphQL schema definitions into strongly-typed Go source code, ensuring strict alignment between the API contract and the underlying implementation. The framework distinguishes itself through its deep integration with the Go type system and its highly extensible build pipeline. By using schema-first development, it automates the creation of server boilerplate and resolver stubs, allowing developers to map schema fields directly to Go structs and
Attaches reusable logic to schema fields or arguments to intercept requests and execute cross-cutting concerns.
GraphQL.NET 是一个用于在 C# 应用程序中构建和执行 GraphQL API 的服务端框架。它提供了一套全面的工具包,用于模式构建、分布式数据图的联合引擎,以及用于管理实时数据流的订阅处理器。 该项目的独特之处在于其灵活的模式构建器,支持程序化的代码优先定义和使用标准模式定义语言的声明式模式优先方法。它包括一个专门的联合引擎,用于将数据图拆分为子图并将其组合成统一的网关,以及一个专门设计用于通过批处理和缓存解决 N+1 查询问题的数据加载器实现。 该框架涵盖了广泛的操作功能,包括用于服务生命周期管理的依赖注入集成、用于字段解析拦截的中间件流水线,以及针对值类型优化以减少内存分配的执行流水线。它还提供用于查询复杂度分析、文档缓存和基于角色的访问控制的工具,以保护 API 端点。 对提前(AOT)模式编译的支持允许该框架在禁止动态代码生成的环境中执行。
Provides a middleware pipeline to intercept and wrap field resolution with custom logic via a provider.
该项目是一个轻量级 PHP 框架,旨在通过模型-视图-控制器架构模式构建 Web 应用程序。它提供了一个结构化的环境,将业务逻辑、数据管理和用户界面呈现分离为不同的层,以提高代码的可维护性。 该框架利用前端控制器拦截所有传入的 Web 流量,根据定义的 URL 模式将请求路由到特定的控制器操作。它结合了中间件式的请求拦截,允许在请求生命周期的各个阶段执行自定义逻辑,例如身份验证、安全过滤或数据准备。 除了核心路由和结构能力外,该框架还包括通过抽象数据访问层管理数据库交互以及使用基于模板的视图生成渲染动态网页的工具。这些功能共同支持组织化的服务器端 Web 应用程序的开发。
Executes custom logic during the request-response lifecycle to handle cross-cutting concerns like authentication.