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

Way to get request in handleResponse or handleProxyResponse #1

Open
3l3m01 opened this issue Oct 17, 2023 · 1 comment
Open

Way to get request in handleResponse or handleProxyResponse #1

3l3m01 opened this issue Oct 17, 2023 · 1 comment

Comments

@3l3m01
Copy link

3l3m01 commented Oct 17, 2023

It would be nice to have a way to get the original request in the handleProxyResponse and/or handleResponse methods.

@cyal1
Copy link
Owner

cyal1 commented Oct 17, 2023

Using the initiatingRequest() may solve your problem

def handleResponse(response, annotations):
    print(response.initiatingRequest())
    return response, annotations

def handleProxyResponse(response, annotations):
    print(response.initiatingRequest())
    return response, annotations

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

2 participants