BcryptMontoya icon indicating copy to clipboard operation
BcryptMontoya copied to clipboard

Way to get request in handleResponse or handleProxyResponse

Open 3l3m01 opened this issue 1 year ago • 1 comments

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

3l3m01 avatar Oct 17 '23 08:10 3l3m01

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

cyal1 avatar Oct 17 '23 11:10 cyal1