mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
fix
This commit is contained in:
parent
c75d466fd8
commit
3394bcd6b0
@ -2,7 +2,7 @@
|
||||
|
||||
在常见的 web 框架中,router 是必备的组件。golang 圈子里 router 也时常被称为 http 的 multiplexer。在上一节中我们通过对 Burrow 代码的简单学习,已经知道如何用 http 标准库中内置的 mux 来完成简单的路由功能了。如果开发 web 系统对路径中带参数没什么兴趣的话,用 http 标准库中的 mux 就可以。
|
||||
|
||||
restful 是几年前刮起的 API 设计风潮,在 restful 中使用了 http 标准还没有支持的一些语义。来看看 restful 中常见的请求路径:
|
||||
restful 是几年前刮起的 API 设计风潮,在 restful 中使用了 http 标准库还没有支持的一些语义。来看看 restful 中常见的请求路径:
|
||||
|
||||
```
|
||||
GET /repos/:owner/:repo/comments/:id/reactions
|
||||
|
Loading…
x
Reference in New Issue
Block a user