538d39a7 by astaxie

add some tips

1 parent b961abb5
...@@ -204,6 +204,16 @@ ...@@ -204,6 +204,16 @@
204 一下是不同的method对应不同的函数,通过`;`进行分割 204 一下是不同的method对应不同的函数,通过`;`进行分割
205 205
206 beego.Router("/simple",&SimpleController{},"get:GetFunc;post:PostFunc") 206 beego.Router("/simple",&SimpleController{},"get:GetFunc;post:PostFunc")
207
208 可用的http method
209 - * :包含一下所有的函数
210 - get :GET请求
211 - post :POST请求
212 - put :PUT请求
213 - delete :DELETE请求
214 - patch :PATCH请求
215 - options :OPTIONS请求
216 - head :HEAD请求
207 217
208 >>>如果同时存在*和对应的http method,那么优先执行http method的方法,例如同时注册了如下所示的路由: 218 >>>如果同时存在*和对应的http method,那么优先执行http method的方法,例如同时注册了如下所示的路由:
209 219
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!