[go-nuts] fasthttp redirect control

2016-11-03 Thread Aliaksandr Valialkin
Just use Client.Do - https://godoc.org/github.com/valyala/fasthttp#Client.Do . It doesn't follow redirects, so you can inspect each response and decide whether to follow each redirect. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscr

[go-nuts] fasthttp redirect control

2016-11-03 Thread Francis
I would like to be able to use the fasthttp client. But I need to be able to control the redirect logic. Specifically I would like to limit the number of redirects and abort the request if it redirects to a specific host. I am able to do that using the `http.Client.CheckRedirect` function, but