-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Can't intercept requests on 'send()' method #40
Comments
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details. |
Hmm, to be honest, right now there's no way to achieve this other than extending the class and using your own extension for it. I do plan to support the |
I have added this to the backlog, I will close the issue now. |
I faced the same problem. Headers were not attached to send call |
Hi, yes, as pointed in the plugin's read me, the usage of the send method is not supported yet, I am working to achieve this, it takes quite an effort since I might need to clone every type of request to properly intercept it. I'm sorry for the many inconveniences this has caused. |
Using |
I am using an API that has an odd DELETE request endpoint where I have to pass a body to it, the default delete method doesn't have an option to pass a body so I have to create a custom request then pass it like this
client.send(request)
, the problem is the interceptor doesn't seem to intercept these requests on the client, and so my default headers are left blank.Is there a way to intercept this type of request without having to manually add the headers to the custom request?
The text was updated successfully, but these errors were encountered: