说明:go_web
介绍
在Go Web上运行Hello World
服务器创建
使用ListenAndServe(port, ServeMux)
http.HandleFunc将使用该方法转移到Handler。
用http.Handle创建需要实现ServeHTTP接口
http.Server到配置服务器
http.NewServeMux创建多路复用器
HTTP
net/http
打开一个TCP连接
发送HTTP消息
读取服务器发送的响应
关闭或重用连接以进行进一步的请求
http请求
ht
<weixin_42165980> 上传 | 大小:4mb