You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No mean to offend, but I find that agent's default setting behavior to be nonsensical.
I want the agent to manage the cookie for me. But I still need to send query with different query parameters in the requests.
Thinking this is a pretty common and reasonable use case. After all that's what happens if you make http request from a browser.
If I am not mistaken, the current api virtually prohibits you from doing that.
For example
constagent=superagent.agent()awaitagent.get('/xyz').query({id: 1})awaitagent.get('/xyz')// with ?id=1 awaitagent.get('/xyz').query({id: undefined})// without ?id=1awaitagent.get('/xyz')// with ?id=1 again
The current api means the first query parameter you send automatically becomes the default for all of the subsequent requests and without any way of removing that default.
The text was updated successfully, but these errors were encountered:
No mean to offend, but I find that agent's default setting behavior to be nonsensical.
I want the agent to manage the cookie for me. But I still need to send query with different query parameters in the requests.
Thinking this is a pretty common and reasonable use case. After all that's what happens if you make http request from a browser.
If I am not mistaken, the current api virtually prohibits you from doing that.
For example
The current api means the first query parameter you send automatically becomes the default for all of the subsequent requests and without any way of removing that default.
The text was updated successfully, but these errors were encountered: