项目
在 GitHub 查看
kataras/muxie
关于
Muxie 是一款面向 Go 的现代化、快速且轻量的 HTTP 多路复用器,完全兼容 http.Handler 接口,适合所有人使用。
其他项目可以做什么
- trie based: performance and useness are first class citizens, Muxie is based on the prefix tree data structure, designed from scratch and built for HTTP, and it is among the fastest outhere, if not the fastest one
- grouping: group common routes based on their path prefixes
- no external dependencies: weighing 30kb, Muxie is a tiny little library without external dependencies
- closest wildcard resolution and prefix-based custom 404: wildcards, named parameters and static paths can all live and play together nice and fast in the same path prefix or suffix(!)
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Muxie
:steam_locomotive::train::train::train::train::train:
Fast trie implementation designed from scratch specifically for HTTP
A
small and light router for creating sturdy backend Go applications. Production-level tested, muxie's capabilities live inside the well-tested Iris web framework.
The little router that could. Built with ❤︎ by
Gerasimos Maropoulos
Last updated on October 17, 2018. Click here to read more details.
Features
- trie based: performance and useness are first class citizens, Muxie is based on the prefix tree data structure, designed from scratch and built for HTTP, and it is among the fastest outhere, if not the fastest one
- grouping: group common routes based on their path prefixes
- no external dependencies: weighing
30kb, Muxie is a tiny little library without external dependencies - closest wildcard resolution and prefix-based custom 404: wildcards, named parameters and static paths can all live and play together nice and fast in the same path prefix or suffix(!)
- small api: with only 3 main methods for HTTP there's not much to learn
- compatibility: built to be 100% compatible with the
net/httpstandard package
Technical Features
- Closest Wildcard Resolution and Root wildcard (CWR)*
- Parameterized Dynamic Path (named parameters with
:nameand wildcards with*name, can play all together for the same path prefix|suffix)* - Standard handlers chain (
Pre(handlers).For(mainHandler)for individual routes andMux#Usefor router)* - Register handlers by method(s) (
muxie.Methods())* - Register handlers by filters (
Mux#HandleRequestandMux#AddRequestHandlerformuxie.Matcherandmuxie.RequestHandler) - Handle subdomains with ease (
muxie.HostMatcher)* - Request Processors (
muxie.Bindandmuxie.Dispatch)*
Interested? Want to learn more about this library? Check out our tiny examples and the simple godocs page.
Installation
The only requirement is the Go Programming Language
$ go get -u github.com/kataras/muxie
License
探索相关项目
加载中…
