ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
> ### http请求 * 请求行 请求头 请求体 * conn.Write(\[\]byte("GET / HTTP/1.1\\r\\nHost: 127.0.0.1:9000\\r\\n\\r\\n")) ![](/D:/%E6%AD%A3%E5%BC%8F%E6%A1%8C%E9%9D%A2/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/book/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/images/QQ%E6%88%AA%E5%9B%BE20180930172240.jpg) > ### http响应 * conn.Write(\[\]byte("HTTP/1.1 200 OK\\r\\nContent-Length: 10\\r\\nContent-Type: text/plain; charset=utf-8\\r\\n\\r\\nHelloWorld")) * conn.Write(\[\]byte("HTTP/1.1 200 OK\\r\\nContent-Length: 0\\r\\n\\r\\n")) ![](/D:/%E6%AD%A3%E5%BC%8F%E6%A1%8C%E9%9D%A2/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/book/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/images/QQ%E6%88%AA%E5%9B%BE20180930172259.jpg)