Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add method for ProxyHttpServer object #491

Open
ttmars opened this issue Nov 9, 2022 · 0 comments
Open

add method for ProxyHttpServer object #491

ttmars opened this issue Nov 9, 2022 · 0 comments

Comments

@ttmars
Copy link

ttmars commented Nov 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant