fmt.Fprintf(w, "server refused to handel request\n") w.Write([]byte("{status: \"请求处理成功\"}"))
随便选一种,其中w是http.ResponseWriter类型
本文标题:go 响应http请求
本文链接:https://www.haomeiwen.com/subject/nottghtx.html
网友评论