热门搜索 :
考研考公
您的当前位置:首页正文

Go语言:获取http状态码

来源:东饰资讯网

代码实例


package main

import (
    "net/http"
)

func main() {
    res, _ := 
    defer res.Body.Close()
    println(res.StatusCode)
}
Top