13 个仓库
Object-oriented layers that model HTTP requests and responses with headers, parameters, cookies, and file uploads.
Distinguishing note: No candidate in the shortlist describes an object-oriented abstraction layer for HTTP request/response modeling; closest candidates focus on translation or modification, not foundational modeling.
Explore 13 awesome GitHub repositories matching web development · HTTP Request-Response Object Layers. Refine with filters or upvote what's useful.
s3fs-fuse 是一个基于 FUSE 的文件系统,可将 Amazon S3 存储桶和兼容 S3 的对象存储挂载为本地目录。它充当云对象存储网关,将标准的 POSIX 文件系统调用转换为 RESTful API 请求,从而允许像访问本地文件一样访问远程对象。 该项目支持在 Linux、macOS 和 FreeBSD 上将远程对象存储映射到本地路径。它通过使用自定义服务 URL 和专门的请求样式,支持与第三方 S3 兼容提供商的集成。 该系统包括用于本地数据和元数据缓存的功能,以减少网络延迟和 API 请求频率。访问通过基于凭据的身份验证和使用环境变量或凭据文件的请求签名进行管理。
Translates standard POSIX file operations like read and write into RESTful API calls for cloud storage.
Symfony HttpFoundation is an object-oriented library that models HTTP requests and responses as structured objects, wrapping PHP superglobals into typed parameter bags and providing dedicated objects for headers, cookies, and file uploads. It serves as the foundational layer for building HTTP-based applications in PHP, offering a complete abstraction for reading request data, constructing responses, and managing the full request-response lifecycle. The library distinguishes itself through composable request matchers that check incoming requests against conditions like IP, method, host, or pat
Provides the foundational object-oriented layer for modeling HTTP requests and responses in PHP.
HttpKernel is the core kernel component of the Symfony framework that orchestrates the complete HTTP request-response lifecycle. It provides an event-driven pipeline that converts an incoming HTTP request into a matching response by dispatching lifecycle events for early interception, controller resolution, error handling, response modification, and deferred tasks. The kernel automatically resolves the PHP callable that handles a request and injects its arguments using reflection and request attributes. It dispatches attribute-specific events for each PHP attribute found on a controller, enab
Converts an incoming HTTP request into a matching response through a structured, event-driven lifecycle.
Midway 是一套用于 Node.js 的后端框架,旨在构建企业级微服务和全栈应用。它以依赖注入架构为核心,使用控制反转(IoC)容器和装饰器来组织复杂的业务逻辑并维护可扩展的服务器端结构。 该框架提供针对 HTTP、gRPC 和 WebSocket 的多协议支持,允许单一环境处理多样化的服务间网络需求。它还包括一个多运行时适配器层,使应用能够部署在传统容器和各种无服务器云平台上。 其他功能包括用于模块化扩展的组件化插件系统、用于请求处理的中间件执行流水线,以及用于前端界面与后端逻辑之间统一 API 连接的工具。该系统还结合了请求数据验证和标准化的错误处理。
Provides standardized HTTP error responses to ensure a consistent user experience across the API.
Werkzeug is a comprehensive library and toolkit for building WSGI-compliant web applications in Python. It provides the fundamental building blocks for web development, including an HTTP request and response toolkit, a rule-based URL routing engine, and a library for managing the overall web application lifecycle. The project is distinguished by its integrated development suite, which includes a WSGI development server featuring automatic code reloading and a PIN-protected interactive browser debugger for inspecting call stacks. It also includes a specialized WSGI test client that enables the
Provides an object-oriented toolkit for parsing HTTP requests and constructing formatted HTTP responses.
TypeSpec is a language for defining cloud API shapes and generating OpenAPI, JSON Schema, and client/server code from a single source of truth. It functions as a protocol-agnostic API designer that models REST, gRPC, and other API protocols using a unified, extensible syntax, with a decorator-based metadata system for attaching metadata, validation rules, and lifecycle visibility to API models and operations. The compiler produces OpenAPI 3.0 specifications and other artifacts, and the tool supports declaring API versions and tracking changes to models, properties, and operations across releas
Provides predefined models for standard HTTP error responses in API definitions.
Zend Framework is a comprehensive set of decoupled components for building modular, event-driven web applications. It implements an MVC architecture to separate business logic from the user interface and provides a structured request-handling system through a sequential middleware pipeline. The project features a factory-driven dependency injection container to automate object instantiation and manage class lifecycles. It also includes a comprehensive security suite for verifying user identities and restricting resource access using access control lists and role-based access control adapters.
Provides object-oriented layers that model HTTP requests and responses with headers, parameters, and bodies.
Hono 是一个极简的 JavaScript HTTP 框架,旨在跨多个运行时(包括 Node.js、边缘运行时和无服务器平台)构建 Web 服务器。它作为一个跨运行时 Web 服务器和 Web 标准 API 包装器,将各种运行时的请求和响应对象标准化为标准的 Web API 签名。 该项目作为 HTTP 中间件编排器和请求处理器,利用基于中间件的请求管道和分层路由挂载来创建模块化服务器结构。它通过一个运行时无关的事件包装器脱颖而出,确保无论部署环境如何,行为都保持一致。 该框架涵盖了广泛的功能,包括带有动态参数捕获的 HTTP 请求路由、实时 WebSocket 通信,以及 CORS 管理和基本身份验证等全面的安全措施。它还提供了通过 Cookie 进行会话管理、静态资产服务以及通过请求代理和 URL 重定向进行流量管理的实用程序。 该项目使用 TypeScript 实现。
Accesses incoming request details and modifies outgoing response headers through a unified event object.
Connexion 是一个规范驱动的框架,用于构建自动将 OpenAPI 规范映射到应用逻辑的 API。它使用这些规范来自动化路由、请求验证和响应序列化,并通过操作 ID 将 API 操作链接到后端处理函数。 该项目通过提供一个模式驱动的 Mock 服务器来区分开来,该服务器使用规范中的示例响应来模拟 API 行为,而无需后端逻辑。它还包括一个动态文档托管系统,将 API 规范转换为实时交互式控制台,用于探索和测试端点。 该框架涵盖了广泛的功能领域,包括通过基于中间件的身份验证和作用域验证实施安全性、可插拔的请求和响应验证逻辑,以及向类型化函数参数自动注入参数。它还提供了用于应用生命周期管理、自定义中间件集成和请求模拟测试的实用工具。 该项目可用于引导独立 Web 应用,或包装在现有框架周围以添加规范驱动的功能。
Automatically translates application exceptions into standardized HTTP problem responses.
Connexion 是一个规范优先(Spec-first)的 Python Web 框架,旨在直接从预定义的 API 契约中派生服务器行为和验证逻辑。它通过使用 OpenAPI 规范自动处理路由、请求验证和响应序列化,从而实现 Web 服务的开发。 该框架通过充当 OpenAPI 请求验证器和 Mock 服务器而脱颖而出。它可以通过基于规范模式提供示例响应来模拟 API 行为,从而允许在后端实现完成之前进行前端开发和原型设计。此外,它还托管一个交互式 API 文档界面,为用户提供可视化和测试端点的控制台。 该项目涵盖了广泛的功能,包括基于契约定义的自动路由注册、参数注入和安全性实施。它还提供了用于请求和响应模式验证的工具,以及将应用异常映射到标准化机器可读错误响应的能力。
Translates exceptions into standardized HTTP problem responses to provide consistent error reporting to clients.
该项目是一个正式的 RFC 提案和技术规范,针对一系列新的 HTTP 状态码。它定义了一个开发人员错误标准,旨在区分 REST API 响应中的实现失败与标准客户端或服务器错误。 该规范提出了对 HTTP 协议的扩展,引入了状态码的保留数值范围。该系统将唯一的整数标识符映射到特定的实现错误,提供精确的诊断含义,并将开发人员错误与标准协议响应隔离开来,同时保持向后兼容性。 该标准通过为错误负载建立一致的响应模式,涵盖了 API 错误处理和开发人员调试工作流。这确保了在报告实现失败时不同 API 客户端和服务器之间的互操作性。
Defines a new standard for HTTP status codes to distinguish implementation mistakes from standard client or server errors.
routing-controllers 是一个用于 TypeScript 的声明式 API 路由器和 Web 框架控制器。它提供了一个系统,用于使用基于类的装饰器和元数据定义 HTTP 路由和请求处理逻辑,从而将 API 端点组织成结构化的架构。 该项目利用基于适配器的服务器集成将路由逻辑与底层 Web 框架解耦,为 Express 和 Koa 提供了特定的集成。它具有一个基于反射的类型转换系统,可验证传入的请求参数并将其转换为类型化的类实例。 功能面涵盖了完整的请求-响应管道,包括中间件执行、响应拦截和全局错误管理。它支持高级路由实用程序,如全局路由前缀、基于文件系统的组件发现和依赖注入集成。其他功能包括基于角色的访问控制、已验证用户注入以及用于文件上传和响应流的专门处理程序。
Returns standardized HTTP error responses using built-in or custom exception classes like NotFoundError.
This project provides a routing library for the Koa web framework, designed to map incoming HTTP requests to specific handler functions. It serves as a core infrastructure for organizing application logic into modular endpoints, utilizing declarative route registration and middleware-based request pipelines to process traffic. The library distinguishes itself through its support for hierarchical router nesting, which allows for the creation of scalable, modular application architectures and distinct API versioning. It offers granular control over request matching, including support for regula
Provides standard-compliant responses for unmatched routes and unsupported HTTP methods.