Skip to content

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

Open
@jeevatkm

Description

@jeevatkm

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions