動手練習,並製作筆記
存放目錄
./static
GET
回傳
{"message":"Hi"}
GET
POST
GET
回傳
{"age":20,"message":"Hello Golang","name":"IvesShe"}
GET
回傳
{"name":"ChiChi","message":"Hello World","age":18}
GET
回傳
{"age":"","message":"Hi","name":"18"}
GET
輸入 ex
http://localhost:9090/blog/iveshe/20
回傳
{"age":"20","name":"iveshe"}
GET
輸入 ex
http://localhost:9090/user?username=IvesShe&password=123456
回傳
{"status":"ok"}{"username":"IvesShe","password":"123456"}
POST
回傳
{
"status": "/form POST ok"
}{
"username": "ivesshe",
"password": "111111"
}
POST
回傳
{
"status": "/json POST ok"
}{
"username": "ivesshe",
"password": "111111"
}
GET
POST
{"message":"3 files uploaded!"}
上傳成功
轉向turn_that
輸出
{"message":"turn_that"}
輸出
{"method":"GET"}
輸出
{
"method": "POST"
}
輸出
{
"method": "PUT"
}
輸出
{
"method": "DELETE"
}
同/shop
輸出
{"method":"/video/shop"}
輸出
{"method":"/video/login"}
輸出
{"method":"/video/user"}
輸出
{"msg":"使用了ShowHandler中間件..."}{"message":"member"}