/videos/:vid-id 这种风格的url 没有在http协议里找到(我只看到使用;分割参数),
来源:4-6 streamHandler实现
谭桐
2019-08-12
/videos/:vid-id 这种风格的url 没有在http协议里找到(我只看到使用;分割参数), 但是它(:)确实工作了, 有更详细的出处吗 我意识到我忽略了很多东西
2回答
-
这种格式只是http那个三方中间件的表示方式,跟http协议本身无关。
00 -
谭桐
提问者
2019-08-12
是的 完全没想过httprouter 在这里充当的如此重要的角色
Web Frameworks based on HttpRouter
If the HttpRouter is a bit too minimalistic for you, you might try one of the following more high-level 3rd-party web frameworks building upon the HttpRouter package:
Ace: Blazing fast Go Web Framework
api2go: A JSON API Implementation for Go
Gin: Features a martini-like API with much better performance
Goat: A minimalistic REST API server in Go
goMiddlewareChain: An express.js-like-middleware-chain
Hikaru: Supports standalone and Google AppEngine
Hitch: Hitch ties httprouter, httpcontext, and middleware up in a bow
httpway: Simple middleware extension with context for httprouter and a server with gracefully shutdown support
kami: A tiny web framework using x/net/context
Medeina: Inspired by Ruby's Roda and Cuba
Neko: A lightweight web application framework for Golang
River: River is a simple and lightweight REST server
Roxanna: An amalgamation of httprouter, better logging, and hot reload
siesta: Composable HTTP handlers with contexts
xmux: xmux is a httprouter fork on top of xhandler (net/context aware)
00
相似问题