EddieIvan01/nic

请求增加状态码支持

Closed this issue · 1 comments

gyje commented
请求增加状态码支持

nic.Response内嵌了http.Response结构体,你可以这样获取状态码

resp, _ := nic.Get(url, nil)
println(resp.StatusCode)