ironmux:用Go语言编写的快速,低分配,零依赖的http路由器

时间:2021-03-11 09:00:51
【文件属性】:
文件名称:ironmux:用Go语言编写的快速,低分配,零依赖的http路由器
文件大小:15KB
文件格式:ZIP
更新时间:2021-03-11 09:00:51
Go IronMux [![GoDoc窗口小部件]] [GoDoc] ironmux是一种高性能,零依赖,以中间件为中心的路由器,用于处理HTTP请求。 它基于具有请求管道并添加您认为合适的中间件的想法。 附带了一些中间件,主要的中间件是Endpoints,它允许您使用标准的http.ResponseWriter和http.Request将HTTP动词映射到处理程序。 :package: 安装 go get -u github.com/ironfang-ltd/ironmux :man::laptop: 基本范例 package main import ( "log" "net/http" "github.com/ironfang-ltd/ironmux" "github.com/ironfang-ltd/ironmux/middleware" ) func main() { // Create a new in
【文件预览】:
ironmux-main
----testdata()
--------index.html(303B)
--------test.txt(33B)
----middleware()
--------files_test.go(405B)
--------requestid_test.go(673B)
--------test.go(569B)
--------endpoints.go(1KB)
--------files.go(1KB)
--------spa_test.go(578B)
--------endpoints_test.go(2KB)
--------logging.go(762B)
--------requestid.go(1KB)
--------tree.go(1KB)
--------node.go(1019B)
--------tree_test.go(572B)
--------time.go(390B)
--------spa.go(1KB)
----LICENSE(1KB)
----mux.go(2KB)
----.gitignore(269B)
----mux_test.go(2KB)
----README.md(2KB)
----go.mod(48B)
----_examples()
--------middleware()
--------spa()
--------basic()
--------files()

网友评论