2022年7月3日星期日。
2022/7/2
Golang Web middleware 取得response內容
Go middleware取得handler回應內容如HTTP狀態碼(HTTP Status Code)、回應頭(Response Header)、回應主體(Response Body)的方式如下。
2022/7/1
Golang http.Handle與http.HandleFunc區別
Go處理HTTP請求時可利用http.Handle或http.HandleFunc設定對應的URL pattern和請求處理邏輯,兩者用途相同且內部皆透過DefaultServeMux處理請求,但有以下差別。
訂閱:
文章 (Atom)