Simple, effective and fast HTTP Client based on curl for neovim (<5kb).
_ __ ___ ___ ___ _ _ _ __ -
| '_ \ / _ \/ _ \ / __| | | | '__| |
| | | | __/ (_) | (__| |_| | | | |
|_| |_|\___|\___/ \___|\__,_|_| |_|
Directly plug lightweight http client to your neovim without overwhelming setup and configuration. The neocurl plugin are designed for ease to use and getting work done fast so you can focus on your development!
use 'vartzy/neocurl'
Lazy load it (Recommended)
use {'vartzy/neocurl', ft = 'http'}
Plug 'vartzy/neocurl'
"vartzy/neocurl"
curl
jq (optional -- recommended for pretty print)
Windows (via Scoop)
scoop install main/curl
scoop install main/jq
brew install jq
sudo apt install jq
### Register user
POST http://localhost:3000/api/users
Content-Type: application/json
Accept: application/json
{
"username": "VArtz",
"password" : "secret123",
"name" : "Farrel Nikoson"
}
### Login User
POST http://localhost:3000/api/users/login
Content-Type: application/json
Accept: application/json
{
"username": "VArtz",
"password" : "secret123"
}
### Get User
GET http://localhost:3000/api/users/current
Accept: application/json
X-API-TOKEN: 25edd380-731c-4d9f-ac9b-b49f01e205bd
### Get User // place your cursor here
GET http://localhost:3000/api/users/current // or here
Accept: application/json // or here
X-API-TOKEN: 25edd380-731c-4d9f-ac9b-b49f01e205bd// or here
// or here
### Another... // This will run another block
:Http
-- only request with Accept header will formated
:Httpv
-- verbose version (using curl -v)
:Httpd
-- debug mode, curl statement will appear on statusline
You may check or contributing wiki page to cover another case example.