coc-restclient
coc-restclient copied to clipboard
Http rest client extension for coc.nvim
coc-restclient
Trying to port features from vscode-restclient to coc.nvim
Install
:CocInstall coc-restclient
Sample requests
- Single request
- Multiple request
Commands
Use commands with :CocCommand <command>
rest-client.request: Send http request
Configuration
Use configurations with :CocConfig or $HOME/.config/nvim/coc-settings.json
rest-client.enable:truerest-client.showHeaders:truerest-client.proxy:""rest-client.proxyStrictSSL:falserest-client.excludeHostsForProxy:[]rest-client.timeoutinmilliseconds:0rest-client.followredirect:truerest-client.certificates:{}
More configuration options here
Key binding
-
Replace
<Leader>0with key which you are comfortable withnoremap <Leader>0 :CocCommand rest-client.request <cr>
Features ported
- [x] Send http request
- [x] Multiple requests in same file separated by
###delimiter - [x] Proxy support
- [ ] Cancel http request
- [ ] Variable substitution
- [ ] GraphQL query
- [ ] Curl command
TODO
- Support visual select for multiple requests
- Save response
application/gzipto file - Organize source code in better way