2016-02-28 00:03
浏览 177


I have a Request object in golang, and I would like to feed the contents of this object through a net.Conn as part of the task of a proxy. I want to call something like

req, err := http.ReadRequest(bufio.NewReader(conn_to_client))
conn_to_remote_server.Write(... ? ... )

but I have no idea what I would be passing in as the arguments. Any advice would be appreciated.

图片转代码服务由CSDN问答提供 功能建议

我在golang中有一个Request对象,我想通过一个net来馈送该对象的内容。 作为代理任务的一部分。 我想调用类似</ p>

  req,err:= http.ReadRequest(bufio.NewReader(conn_to_client))
conn_to_remote_server.Write之类的东西 (...?...)
 </ code> </ pre> 

,但我不知道将作为参数传递什么。 任何建议将不胜感激。</ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题