[go-nuts] Re: HTTP Proxy in Go

2021-04-22 Thread Dang Dien
I recommend the fasthttp package. I have implemented an HTTP forwarding proxy in Go and use in production with high traffic (~40 rpm). https://github.com/valyala/fasthttp On Thursday, 22 April 2021 at 14:07:00 UTC+7 Van Fury wrote: > > Hi, > > I have to implement an HTTP forwarding proxy in Go w

[go-nuts] Re: HTTP Proxy in Go

2021-04-22 Thread Van Fury
Hi, Thanks, I have created these two proxy using the httputil. How can i send JSON request body from proxyA to proxyB. Any help or idea? ProxyA: const ( ServerB = "" Port = "" ) func main() { // start server http.HandleFunc("/", proxyPass) log.Fatal(http.ListenAndServe(":" + Port, n

[go-nuts] Re: HTTP Proxy in Go

2021-04-22 Thread wilk
On 22-04-2021, Van Fury wrote: > --=_Part_322_998422299.1619075183467 > Content-Type: multipart/alternative; > boundary="=_Part_323_2099960923.1619075183467" > > --=_Part_323_2099960923.1619075183467 > Content-Type: text/plain; charset="UTF-8" > > > Hi, > > I have to implement an