You could write both requests out and then send them in parallel, but this is probably not what you're looking for
If you want to use an if loop with requests, I would just write Python code to do that and run it in the console
hi @kylebebak thanks for your response. yes i use ruby for sending requests currently (on sublime text) but the output is shown in the console window (same with python) unlike requester that displays output right inside the text editor with the necessary highlighting for json which is nice. that is why i wanted to see if there is a way to run loops with reqeuster.
i have used insomnia, postman etc. in the past to run requests but none of these tools allow iteration which is why i have to always go back to doing it in the console. Requester is good for requests with large response bodies since its lightweight. since its mentioned it is possible to set env variables using python , i just wanted to ask if it is possible to do iterations as well using python.
Well, I'm glad you're using Requester, and I'm glad you asked the question. Unfortunately, I doubt the library will ever support iteration. Parsing arbitrarily complex Python code for calls to requests seems like it implies writing a fully-fledged Python parser from scratch
If someone knows a lot about ASTs and whether they can be used to find function calls and extract the arg/kwarg list for each of these calls, it might be possible to build this feature in theory