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

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

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

weavejester/compojure

0
View on GitHub↗
4,115 星标·260 分支·Clojure·EPL-1.0·2 次浏览

Compojure

Compojure 是一个用于 Ring Web 应用程序的路由库,使用可组合的路由定义将 HTTP 请求映射到处理函数。它作为 Ring 生态系统的中间件组件,通过将传入的请求方法和路径与定义的 URI 模式进行匹配,将 Web 流量引导至特定的应用程序逻辑。

该路由器利用模块化架构,允许将相关端点分组为解耦的模块。这种组合模型使得能够从更小、独立的路由上下文中构建更大的应用程序。

该库提供了处理 Web 请求的功能,包括将原始 URI 路径参数转换为特定数据类型以及规范化请求 URI。它还包括通过将请求路径映射到物理文件或内部资源来提供静态资源的功能。

Features

  • HTTP Request Routing - Maps incoming HTTP request methods and paths to specific handler functions to determine the processing logic.
  • HTTP Routers - Provides a system for mapping incoming network requests to specific handler functions based on URL patterns and HTTP methods.
  • Route Pattern Matching - Matches incoming request URIs against predefined regular expression patterns to select the appropriate handler function.
  • Routing Composition - Implements the nesting of route handlers to build complex, hierarchical application structures from modular rules.
  • Route-Based Modularization - Organizes complex web applications by grouping related endpoints into independent, decoupled routing contexts.
  • HTTP Request Handling - Processes web requests by converting path parameters into data types and directing them to business logic.
  • Request Middleware - Provides middleware mechanisms for intercepting and processing HTTP requests before they reach the final application handler.
  • Request Routing - Directs incoming network requests to appropriate handlers based on path and method matching.
  • Ring Application Frameworks - Enables building web services and APIs based on the Ring specification with structured request and response handling.
  • Ring Middleware - Implements a middleware component for the Ring ecosystem to manage request dispatching and URI pattern matching.
  • Ring Specification Compatibility - Produces standard Clojure maps following the Ring specification for interoperability with JVM web servers.
  • Composable Routers - Provides a hierarchical routing architecture that allows mounting independent route segments into a unified application.
  • Composable Routing Contexts - Group related routes into independent contexts to build a larger application from small, decoupled parts.
  • Path Parameter Converters - Transforms raw URI path parameters into specific data types before they reach the handler.
  • Static Asset Serving - Maps request paths to physical files or internal resources to send static content directly to clients.
  • Typed Path Parameter Decoders - Converts raw string path segments into specified data types like integers or UUIDs during the routing phase.
  • Web Response Generation - Generates standardized web response objects with appropriate MIME types from internal data structures.
  • Language Toolkits - Concise routing library for Clojure.
  • Web Frameworks - Routing library for composing web applications.

Star 历史

weavejester/compojure 的 Star 历史图表weavejester/compojure 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Compojure 的开源替代方案

相似的开源项目,按与 Compojure 的功能重合度排序。
  • go-chi/chigo-chi 的头像

    go-chi/chi

    22,418在 GitHub 上查看↗

    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

    Goapicontextgo
    在 GitHub 上查看↗22,418
  • gorilla/muxgorilla 的头像

    gorilla/mux

    21,832在 GitHub 上查看↗

    This project is a request router and web framework for the Go programming language. It provides a toolkit for matching incoming HTTP network requests to specific handler functions by evaluating criteria such as URL paths, request methods, headers, and hostnames. The framework distinguishes itself through its flexible matching capabilities, which include support for regular expressions and dynamic variable extraction from URL segments. It allows developers to organize routes into logical hierarchies, share common path prefixes, and maintain a central registry of named routes to facilitate prog

    Gogogolanggorilla
    在 GitHub 上查看↗21,832
  • go-martini/martinigo-martini 的头像

    go-martini/martini

    11,603在 GitHub 上查看↗

    Martini is a web framework for the Go programming language that provides a toolkit for building web applications. It functions as a routing engine and an HTTP middleware pipeline to map network requests to specific handler functions. The framework is distinguished by its dependency injection system, which automatically resolves and provides requested service types as arguments to handler functions. This allows for the decoupling of business logic from infrastructure by matching requested types against a registry of available services. The project covers a broad range of web capabilities, inc

    Go
    在 GitHub 上查看↗11,603
  • kataras/iriskataras 的头像

    kataras/iris

    25,582在 GitHub 上查看↗

    Iris is a high-performance web framework and API toolkit for the Go programming language. It provides the infrastructure necessary to build HTTP/2 web applications, REST APIs, and MVC-based websites. The project distinguishes itself through a flexible architectural model that supports multiple isolated application instances within a single process and allows for binary-embedded asset loading to eliminate external filesystem dependencies. It features dynamic router hot-reloading and a pluggable view engine for rendering dynamic HTML content. The framework covers a broad range of capabilities,

    Go
    在 GitHub 上查看↗25,582
查看 Compojure 的所有 30 个替代方案→

常见问题解答

weavejester/compojure 是做什么的?

Compojure 是一个用于 Ring Web 应用程序的路由库,使用可组合的路由定义将 HTTP 请求映射到处理函数。它作为 Ring 生态系统的中间件组件,通过将传入的请求方法和路径与定义的 URI 模式进行匹配,将 Web 流量引导至特定的应用程序逻辑。

weavejester/compojure 的主要功能有哪些?

weavejester/compojure 的主要功能包括:HTTP Request Routing, HTTP Routers, Route Pattern Matching, Routing Composition, Route-Based Modularization, HTTP Request Handling, Request Middleware, Request Routing。

weavejester/compojure 有哪些开源替代品?

weavejester/compojure 的开源替代品包括: go-chi/chi — Chi is a lightweight, idiomatic router and middleware framework for building web services in Go. It is designed to… gorilla/mux — This project is a request router and web framework for the Go programming language. It provides a toolkit for matching… go-martini/martini — Martini is a web framework for the Go programming language that provides a toolkit for building web applications. It… kataras/iris — Iris is a high-performance web framework and API toolkit for the Go programming language. It provides the… ninenines/cowboy — Cowboy is a high-performance HTTP server for Erlang and OTP. It is designed to handle web traffic with low memory… webpy/webpy — web.py is a minimal Python web framework that provides the core components needed to build web applications: URL…