diepm / vim-rest-console

A REST console for Vim.
658 stars 54 forks source link

Support bulk requests #36

Closed iamFIREcracker closed 8 years ago

iamFIREcracker commented 8 years ago

This PR enables users to automatically run multiple requests and have their output concatenated in the destination buffer.

For example, if your scratch file looked like the following, only the first request (ie. GET /posts/1) would have been fired:

https://jsonplaceholder.typicode.com
GET /posts/1
GET /posts/2
GET /posts/3
GET /posts/4

This patch instead changes the plugin behavior so that all the 4 GET requests will be fired, one after the other.

It works with global settings too:

https://jsonplaceholder.typicode.com
--

--
GET /posts/1
--
GET /posts/2
GET /posts/3
GET /posts/4
diepm commented 8 years ago

It's a great addition. Thanks, Matteo!