We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func (c *Client) execute(req *Request) (*Response, error) { // Lock the user-defined pre-request hooks. c.udBeforeRequestLock.RLock() defer c.udBeforeRequestLock.RUnlock() // Lock the post-request hooks. c.afterResponseLock.RLock() defer c.afterResponseLock.RUnlock()
This looks very inefficient.
The text was updated successfully, but these errors were encountered:
func (c *Client) OnAfterResponse(m ResponseMiddleware) *Client { c.afterResponseLock.Lock() defer c.afterResponseLock.Unlock() c.afterResponse = append(c.afterResponse, m) return c }
OnAfterResponse is generally not used in http execute.
Sorry, something went wrong.
@valiner This PR would provide an insight #597
@valiner Also if you have a suggestion to improve, please mention it.
No branches or pull requests
This looks very inefficient.
The text was updated successfully, but these errors were encountered: