awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

15 个仓库

Awesome GitHub RepositoriesContent Negotiation

Mechanisms for determining response formats based on request headers.

Distinct from Response Formatting: Focuses on the selection of formats like Markdown vs JSON via headers, not just the conversion logic.

Explore 15 awesome GitHub repositories matching web development · Content Negotiation. Refine with filters or upvote what's useful.

Awesome Content Negotiation GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • microsoft/typespecmicrosoft 的头像

    microsoft/typespec

    5,781在 GitHub 上查看↗

    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

    Serves different response formats from the same endpoint based on the client's Accept header.

    Javajson-schemaopenapi3protobuf
    在 GitHub 上查看↗5,781
  • servicestack/servicestackServiceStack 的头像

    ServiceStack/ServiceStack

    5,498在 GitHub 上查看↗

    ServiceStack 是一个高性能 .NET Web 框架,专为使用强类型请求和响应对象构建类型安全的 API 而设计。它作为一个基于消息的 API 引擎,将业务逻辑与传输层解耦,允许通过包括 HTTP、gRPC 和各种消息队列提供商在内的多种协议公开服务。 该框架的特点是其类型安全的 API 生成器,它从跨多种语言的服务元数据中生成原生客户端 SDK 和数据传输对象。它还包括用于微服务编排的分布式服务网关、将 C# 对象直接转换为数据库记录的代码优先 ORM,以及用于安全令牌访问的集中式身份和访问管理系统。 其更广泛的功能面涵盖通过 Pub-Sub 和服务器发送事件(SSE)进行的异步消息传递和实时事件流。它为 JSON、XML、ProtoBuf 和 MessagePack 等格式提供全面的数据序列化支持,以及包括 JWT、API 密钥和阶梯式认证在内的集成认证流程。其他工具包括自动 CRUD API 生成、后台作业执行和管理仪表盘模板。

    Implements mechanisms for determining and serving response formats based on HTTP request headers.

    C#c-sharpcsvframework
    在 GitHub 上查看↗5,498
  • oakserver/oakoakserver 的头像

    oakserver/oak

    5,408在 GitHub 上查看↗

    Oak 是一个跨运行时的 HTTP 中间件框架和 Web 服务器,旨在跨 Deno、Node.js、Bun 和 Cloudflare Workers 运行。它提供了一个统一的系统,通过中间件函数的顺序链和分层路由引擎来构建 API 和 Web 服务器,该引擎通过嵌套树结构将 URL 路径映射到处理程序。 该框架包括一个与运行时无关的无服务器适配器,可将不同的云提供商事件转换为标准的请求和响应接口。它还具有专用的 WebSocket 服务器实现,用于双向实时通信,以及一个利用异步 Cookie 签名和持久存储的 Web 会话管理器。 该项目涵盖了广泛的服务器功能,包括静态文件服务、内容协商和多部分数据解析。其安全和观测能力包括用于验证 JSON Web Token、配置安全标头、记录 HTTP 流量以及模拟应用程序请求以进行测试的工具。

    Determines the optimal response format by matching client header preferences against available server data types.

    TypeScript
    在 GitHub 上查看↗5,408
  • apache/dubbo-spring-boot-projectapache 的头像

    apache/dubbo-spring-boot-project

    5,389在 GitHub 上查看↗

    该项目是一个集成框架,用于在 Spring Boot 应用中引导 Apache Dubbo 远程过程调用(RPC)服务。它作为一个微服务通信框架,通过自动化配置实现 RPC 服务、服务发现和分布式治理。 该项目的独特之处在于提供了一个跨语言 RPC 桥接,允许使用不同语言编写的服务通过 gRPC 和 Protobuf 等标准进行通信。它还支持使用 Triple 协议将后端微服务暴露为 REST 端点,以便从 Web 浏览器和第三方客户端直接访问。 该框架涵盖了广泛的功能,包括用于流量路由和限流的分布式服务治理、集中式配置管理,以及用于请求追踪和健康监控的微服务可观测性。它还支持多种传输层以及 Redis 和 Memcached 的存储集成。 该项目提供 Starter 和配置,以自动化 Spring Boot 环境中 RPC 基础设施的引导。

    Determines output formats like JSON, XML, and YAML based on request headers or extensions.

    Javadubbo
    在 GitHub 上查看↗5,389
  • qor/qorqor 的头像

    qor/qor

    5,345在 GitHub 上查看↗

    Qor 是一个 Go 管理框架和后端工具包,用于构建管理界面、无头内容管理系统和 REST API 生成器。它提供了一个用于实现业务应用程序后端的结构化环境,专门从事结构化内容和媒体资产的管理。 该项目通过全面的多语言内容管理脱颖而出,具有基于区域设置的数据版本控制以及用于国际化和翻译管理的专用系统。它进一步通过内置的用于业务流程自动化的状态机实现和用于在发布前审查更改的内容暂存工作流来区分其产品。 该框架涵盖了广泛的功能,包括基于角色的访问控制、会话管理和后台作业调度。其数据管理面包括 CRUD 处理程序覆盖、关系管理以及基于后端资源定义生成仪表板和表单输入的元数据驱动 UI。此外,它还提供用于 RESTful API 生成的工具,支持内容协商和嵌套端点。 该系统允许通过将 HTML 模板直接编译到 Go 应用程序二进制文件中来优化部署,从而消除对文件系统的依赖。

    Delivers different response formats based on the request's accepted mime type to support various client requirements.

    Goadminapicms
    在 GitHub 上查看↗5,345
  • digitallyinduced/ihpdigitallyinduced 的头像

    digitallyinduced/ihp

    5,294在 GitHub 上查看↗

    ihp 是一个为 PostgreSQL 设计的类型安全 Web 框架和全栈应用编排器。它作为一个服务端渲染框架和类型安全 ORM,能自动从 SQL 模式生成记录类型,以确保编译时的查询验证。 该平台的特色在于在编译时验证路由、数据库查询和模板,以防止运行时崩溃。它使用 WebSocket 实现实时 Web 界面以进行即时数据同步,并采用服务器驱动的超媒体进行部分 DOM 修补。 该框架涵盖了广泛的集成功能,包括支持 Passkey 和 OAuth 的用户身份管理、具有自动迁移功能的完整数据存储层,以及具有类型安全 HTML 模板的综合 UI 渲染系统。它还提供了用于 JSON API 开发、异步后台任务执行以及支付网关金融集成的内置工具。 生产环境通过声明式 NixOS 部署进行管理,以实现可复现的基础设施。

    Sends either HTML or JSON from a single action based on the HTTP Accept header.

    Haskellframeworkhacktoberfesthaskell
    在 GitHub 上查看↗5,294
  • pypa/sampleprojectpypa 的头像

    pypa/sampleproject

    5,245在 GitHub 上查看↗

    该项目是一个参考实现和教程,旨在演示构建、版本化和上传 Python 分发包的端到端工作流。它作为一个具体的项目模板和示例,用于配置包索引的元数据和构建产物。 该仓库演示了如何通过在静态配置文件中定义项目元数据和依赖项来打包软件。它涵盖了将源代码树转换为版本化归档文件和特定平台二进制分发包的过程,特别展示了如何构建二进制 wheel 和源代码分发包。 该项目涵盖了更广泛的功能领域,包括依赖管理、命令行界面创建以及向仓库发布发布的自动化。它还演示了隔离虚拟环境的使用和二进制扩展的集成。

    Selects the response serialization and API version based on HTTP headers or URL parameters.

    Python
    在 GitHub 上查看↗5,245
  • miguelgrinberg/microblogmiguelgrinberg 的头像

    miguelgrinberg/microblog

    4,771在 GitHub 上查看↗

    This project is a social blogging application built with Flask. It provides a platform for user account management, following relationships, and chronological post streams, supported by a PostgreSQL relational database. The application features a multilingual web interface with localized content and date formatting. It is designed as a dockerized web application, utilizing containerization for consistent deployment across different environments. The system integrates a variety of core capabilities, including full-text search with provider abstraction, an asynchronous task worker for backgrou

    Detects preferred content types via request headers to return errors in either JSON or HTML format.

    Pythonflaskpythonwebapp
    在 GitHub 上查看↗4,771
  • iflow-ai/iflow-cliiflow-ai 的头像

    iflow-ai/iflow-cli

    4,609在 GitHub 上查看↗

    iflow-cli is a command-line interface and suite of AI tools designed for software engineering, workflow orchestration, and multimodal data analysis. It functions as an LLM command line interface that enables users to execute AI workflows, analyze codebase structures, and interact with large language models directly from the terminal. The project features a plugin-based agent architecture that allows for the integration of specialized domain experts and custom instruction sets from an external marketplace. It distinguishes itself through a multimodal AI terminal capable of processing visual da

    Returns data in either structured Markdown or standard JSON based on specified request headers.

    Shell
    在 GitHub 上查看↗4,609
  • mikeal/r2mikeal 的头像

    mikeal/r2

    4,404在 GitHub 上查看↗

    r2 是一个 JavaScript HTTP 客户端库和异步请求库,用于执行网络调用。它提供了一个运行时无关的网络层,抽象了底层的 HTTP 实现,以确保在不同的 JavaScript 执行环境中行为一致。 该库作为一个 JSON API 客户端,自动解析响应体并格式化输出的有效载荷。它利用基于 Promise 的接口来管理 HTTP 请求和响应的生命周期。 该项目涵盖了 REST API 集成和 HTTP 头部管理,允许用户将自定义键值对附加到输出请求中。它包括一个中间件风格的请求流水线,并根据 HTTP 头部进行内容协商,以处理数据序列化。

    Implements mechanisms to determine response formats based on request headers.

    JavaScript
    在 GitHub 上查看↗4,404
  • mpolden/echoipmpolden 的头像

    mpolden/echoip

    4,324在 GitHub 上查看↗

    echoip 是一个网络工具和 API,用于检测公共 IPv4 和 IPv6 地址并检索相关元数据。它作为一个客户端 IP 检测工具和地理定位 API,将传入的请求映射到物理位置和地理元数据。 该项目通过将 IP 地址解析为其对应的自治系统编号 (ASN) 和所属网络组织来提供网络身份分析。它还包含一个连接测试器,用于验证目标远程主机上的特定端口是否开放且可达。 该系统支持通过内容协商以 JSON 和纯文本格式导出结构化数据。地理定位查询包括从位置数据库中获取的城市、国家、坐标和区域 ISO 代码。

    Determines response formats like JSON or plain text based on the client's HTTP request headers.

    Gogeoipgoip-address-lookup
    在 GitHub 上查看↗4,324
  • danielgtaylor/humadanielgtaylor 的头像

    danielgtaylor/huma

    4,170在 GitHub 上查看↗

    Huma is an OpenAPI REST framework for Go designed for building HTTP services with automatic OpenAPI 3.1 specification generation and JSON Schema validation. It serves as a toolkit for developing REST and RPC APIs with typed inputs and outputs, deriving interactive documentation directly from the source code. The framework distinguishes itself by automating the synchronization between implementation and documentation. It uses a content-negotiation engine to manage multiple serialization formats via client headers and employs a JSON Schema input validator to automatically verify request paramet

    Determines request and response formats by matching Content-Type and Accept headers.

    Goapidocumentationfastapi
    在 GitHub 上查看↗4,170
  • pylons/pyramidPylons 的头像

    Pylons/pyramid

    4,086在 GitHub 上查看↗

    Pyramid 是一个 Python Web 框架和 WSGI 工具包,专为构建 Web 应用程序而设计。它作为一个 URL 路由引擎,使用基于模式的路由和分层资源树遍历,将传入的 HTTP 请求映射到特定的视图可调用对象。 该框架的特色在于其混合调度系统,允许开发人员将正则表达式 URL 匹配与通过导航嵌套对象树来解析请求的能力相结合。它实现了一个灵活的组件架构,支持应用程序注册表管理、延迟配置执行,以及在不修改原始源代码的情况下覆盖视图或路由的能力。 其更广泛的功能面涵盖了通过签名 Cookie 和基于 ACL 的授权进行的身份管理、用于请求生命周期的事件驱动协调系统,以及用于 UI 翻译的国际化服务。它还通过自定义序列化程序和模板集成提供内容渲染工具,以及用于注入横切逻辑的中间件 tween 管道。 该工具包包括一个用于路由检查、项目脚手架和应用程序调试的管理命令行界面。

    Determines response formats based on the Accept header to dispatch the appropriate view callable.

    Pythonpylonspyramidpython
    在 GitHub 上查看↗4,086
  • connectrpc/connect-goconnectrpc 的头像

    connectrpc/connect-go

    3,963在 GitHub 上查看↗

    Connect-go 是一个用于构建与 gRPC 和 HTTP 线缆兼容的类型安全远程过程调用 (RPC) 服务的库。它提供了用于结构化数据交换的 Protocol Buffers 的 Go 实现,支持创建多协议 RPC 服务器和生成的类型安全客户端。 该框架以其多语言协议支持而著称,允许单个服务器处理程序通过 HTTP 同时使用多种不同协议处理请求。这包括在同一服务的不同传输协议之间切换的能力,以及使用可插拔内容协商在二进制和 JSON 编码之间进行选择。 该项目涵盖了广泛的 API 集成功能,包括一元和双向消息流、用于请求拦截的网络中间件以及结构化错误管理。它还包括用于服务健康报告、负载压缩和内存缓冲区回收的操作工具,以减少垃圾回收开销。

    Selects between binary and JSON encoding for payloads based on request and response headers.

    Go
    在 GitHub 上查看↗3,963
  • jetzig-framework/jetzigjetzig-framework 的头像

    jetzig-framework/jetzig

    1,487在 GitHub 上查看↗

    Jetzig is a full-stack web framework built in the Zig programming language. It provides a structured environment for developing web applications and programmatic APIs by mapping incoming HTTP traffic directly to files on the filesystem. The framework distinguishes itself through a compile-time approach to template rendering, which ensures type safety and performance during the build phase. It manages application state and cross-cutting concerns through a middleware-based interception system and encrypted, session-based cookie storage. The platform includes integrated support for persistent d

    Negotiates response formats like HTML or JSON based on client request headers or file extensions.

    Zigzig-package
    在 GitHub 上查看↗1,487
  1. Home
  2. Web Development
  3. Response Formatting
  4. Content Negotiation