Allow scripts to call requests before similar to setNextRequest()
#3949
Labels
enhancement
New feature or request
setNextRequest()
#3949
I have checked the following:
Describe the feature you want to add
API are often secured with authentication that will expire after a certain time. Especially during development having to reauthenticate locally is an annoyance and clients like Postman or Insomnia solved this by allowing the user to run requests before the current request.
And yes, I know that I could just do a
fetch
in the collection's pre-request script but having an documented auth endpoint is the proper way to handle authentication than a script hidden in the collection.End of 2023
setNextRequest()
with #619 was implemented and I can't understand why something likebru.setPrevRequest()
or a simplebru.call()
has not been implemented as sending requests before the actual request is a basic feature other clients have.If I can set a request to run after the current request I should also be able to run a request before the current request.
Mockups or Images of the feature
No mockups needed.
Just like
setPrevRequest()
but for executing requests before the main request.The text was updated successfully, but these errors were encountered: