Skip to content

onRedirect #4

Description

@ergcode

Hi!
It would be more logical to use onRedirect, onRequest, and onResponse in the client.request itself, rather than in the Koon class.

Example: https://github.com/sindresorhus/got/blob/main/documentation/9-hooks.md
When the request is executed, I can do almost everything, namely: handle errors, modify headers and cookies, the request body...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions