goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

add method for ProxyHttpServer object

Open ttmars opened this issue 2 years ago • 0 comments

I will execute Proxy.OnResponse().DoFunc many times.

type ProxyHttpServer struct { respHandlers []RespHandler }

so,I hope clear respHandlers chain please add method for ProxyHttpServer to clear respHandlers

add method like this: func (proxy *ProxyHttpServer) ClearRespHandlers() { proxy.respHandlers = proxy.respHandlers[0:0] }

thank you

ttmars avatar Nov 09 '22 07:11 ttmars