add some tips
Showing
1 changed file
with
10 additions
and
0 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment