9 个仓库
Accessing request-specific state through centralized objects.
Distinguishing note: Focuses on state management during the request lifecycle.
Explore 9 awesome GitHub repositories matching web development · Request Context. Refine with filters or upvote what's useful.
Echo is a high-performance, lightweight web framework for Go designed for building scalable RESTful APIs and web services. It provides a centralized environment for mapping network requests to handler functions, utilizing a fast radix-tree routing engine to ensure efficient request dispatching. The framework is built around a modular, middleware-centric pipeline that allows developers to execute reusable logic for cross-cutting concerns like authentication, logging, and security across the entire application. What distinguishes Echo is its focus on developer productivity through structured da
Simplifies state management by providing access to request-specific data.
Chi is a lightweight, idiomatic router and middleware framework for building web services in Go. It is designed to integrate directly with the standard library, providing a set of utilities for managing HTTP request routing, context propagation, and modular service composition. The project distinguishes itself through a radix-tree-based routing system that supports recursive nesting, allowing developers to mount independent sub-routers onto specific path prefixes. This hierarchical structure enables the creation of organized, modular applications where request handlers are grouped and managed
Manages request-specific data and state throughout the lifecycle of an incoming network request.
Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a modular, plugin-based architecture that allows developers to compose server logic, middleware, and validation schemas into scalable application instances. By leveraging native web standards, the framework ensures portability across diverse JavaScript runtimes, including Node.js, Deno, and various edge computing environments. The framework distinguishes itself through its focus on end-to-end type safety, automatically synchronizing request and response definitions between the s
Provides centralized access to request-specific data like headers and cookies within route handlers.
This project is an educational framework designed to teach the fundamentals of building core distributed systems and web services from scratch in Go. It provides a collection of modular implementations that demonstrate how to construct essential infrastructure components, including web servers, remote procedure call systems, distributed caches, and database abstraction layers. The framework distinguishes itself by focusing on the internal mechanics of these systems rather than providing a high-level abstraction for production use. It covers the implementation of complex architectural patterns
Wraps network requests in a unified context object to propagate cancellation signals and deadlines across processing layers.
Javalin is a lightweight web framework for Java and Kotlin designed for building REST APIs and web applications. It functions as an embedded Jetty web server, allowing applications to run as standalone processes without the need for an external servlet container. The project provides specialized frameworks for diverse communication patterns, including a REST API framework with automatic OpenAPI schema generation, a GraphQL API framework with query and mutation resolvers, and a WebSocket server for bidirectional real-time communication. It also includes a dedicated framework for pushing real-t
Provides a centralized context object to read and write request and response data throughout the request lifecycle.
React on Rails 是一个将 React 组件嵌入 Ruby on Rails 视图的集成框架。它作为一个服务端渲染引擎和一个全栈组件编排器,允许后端数据直接传递到前端组件中,而无需进行单独的 API 调用。 该项目同步客户端-服务端路由,以在整个应用程序中保持一致的导航状态。它包括一个 Webpack 资产流水线来管理 JavaScript 包,并实现代码分割以进行优化交付。 该框架涵盖了混合视图渲染和前端资产优化,包括将服务端请求上下文注入 JavaScript 渲染过程的能力。它还提供了在安装或升级过程中诊断集成问题的工具。
Allows server-side request data to be injected into the JavaScript rendering process for use during hydration.
Connexion 是一个规范优先(Spec-first)的 Python Web 框架,旨在直接从预定义的 API 契约中派生服务器行为和验证逻辑。它通过使用 OpenAPI 规范自动处理路由、请求验证和响应序列化,从而实现 Web 服务的开发。 该框架通过充当 OpenAPI 请求验证器和 Mock 服务器而脱颖而出。它可以通过基于规范模式提供示例响应来模拟 API 行为,从而允许在后端实现完成之前进行前端开发和原型设计。此外,它还托管一个交互式 API 文档界面,为用户提供可视化和测试端点的控制台。 该项目涵盖了广泛的功能,包括基于契约定义的自动路由注册、参数注入和安全性实施。它还提供了用于请求和响应模式验证的工具,以及将应用异常映射到标准化机器可读错误响应的能力。
Provides access to the current request, matched operation, and scope using thread-safe global context variables.
Salvo 是一个全面的 Rust Web 框架,用于构建异步 HTTP 服务器和 Web 应用。它具有一个分层 Web 路由器(使用树状结构将请求映射到处理程序)和一个基于洋葱模型的异步中间件流水线(用于请求和响应的预处理和后处理)。 该框架以其对现代网络协议的原生支持而著称,包括基于 QUIC 的 HTTP/3 实现以及 HTTP/1 和 HTTP/2。它包括一个集成的 OpenAPI 文档生成器,可直接从处理程序签名中提取模式,以生成标准化的 API 规范和交互式界面。此外,它通过 ACME 集成提供自动 TLS 管理,以获取和续订安全证书。 该项目涵盖了广泛的功能,包括通过 WebSocket 和 WebTransport 进行的实时通信,以及带有请求代理和路径重写的 API 网关功能。它内置了对会话管理、类型安全参数提取以及通过 OpenTelemetry 集成进行可观测性的支持。内容交付通过静态文件服务和动态 HTML 模板处理。 提供了一个用于引导新项目结构的命令行工具。
Provides a centralized depot for injecting and retrieving shared state and middleware data during a request lifecycle.
该项目是一个教学仓库和学习资源,提供了全面的学习笔记、编程指南和可运行的源码示例。它作为 Java SE 和 Java Web 开发的指南,包含一个代码示例库,演示了常见的算法和技术实现。 该仓库专注于语言核心和运行时分析,并提供有关多线程和并发的详细教程。它提供了软件架构和设计模式(如单例模式和策略模式)的实际实现,以及对 Java 虚拟机 (JVM) 和字节码的探索。 该项目涵盖了广泛的能力,包括泛型和注解等语言基础、涉及 HTTP 请求处理和会话管理的 Web 开发基础,以及用于线程生命周期和资源同步的并发原语。它还包括用于安全、数据处理和动态页面生成的实用程序。
Provides a utility for accessing request-specific state and implicit objects like session to manage user state.