Skip to content

pr4th4m/coc-restclient

Repository files navigation

coc-restclient

Trying to port features from vscode-restclient to coc.nvim

asciicast

Install

:CocInstall coc-restclient

Sample requests

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 : true
  • rest-client.showHeaders : true
  • rest-client.proxy : ""
  • rest-client.proxyStrictSSL : false
  • rest-client.excludeHostsForProxy : []
  • rest-client.timeoutinmilliseconds : 0
  • rest-client.followredirect : true
  • rest-client.certificates : {}

More configuration options here

Key binding

  • Replace <Leader>0 with key which you are comfortable with

    noremap <Leader>0 :CocCommand rest-client.request <cr>

Features ported

  • Send http request
  • Multiple requests in same file separated by ### delimiter
  • Proxy support
  • Cancel http request
  • Variable substitution
  • GraphQL query
  • Curl command

TODO

  • Support visual select for multiple requests
  • Save response application/gzip to file
  • Organize source code in better way

About

Http rest client extension for coc.nvim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published