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 Hooks ability on Client.Close() event #984

Open
jeevatkm opened this issue Mar 11, 2025 · 0 comments
Open

Add Hooks ability on Client.Close() event #984

jeevatkm opened this issue Mar 11, 2025 · 0 comments
Assignees
Labels
feature v3 For resty v3

Comments

@jeevatkm
Copy link
Member

Discussed in #977

Originally posted by beva-sdev March 2, 2025
Dear comunitty, is there any possibility to hook the client. Close() method?

client := resty.New()
defer client.Close()
Do the job.

  • authenticate
  • call the endpoints
  • ...

I would like (lazy as I am) to plug in (hook into) the "Revoke Token action" into the client.Close() method.

Thanks in advance

@jeevatkm jeevatkm added feature v3 For resty v3 labels Mar 11, 2025
@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone Mar 11, 2025
@jeevatkm jeevatkm self-assigned this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature v3 For resty v3
Development

No branches or pull requests

1 participant