https://github.com/termoshtt/curl.vim
An async HTTP client for vim/vimscript
https://github.com/termoshtt/curl.vim
Last synced: about 2 months ago
JSON representation
An async HTTP client for vim/vimscript
- Host: GitHub
- URL: https://github.com/termoshtt/curl.vim
- Owner: termoshtt
- License: mit
- Created: 2015-08-31T18:14:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-07T19:35:50.000Z (over 10 years ago)
- Last Synced: 2025-07-06T18:13:31.818Z (9 months ago)
- Language: VimL
- Homepage:
- Size: 180 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curl.vim
An async HTTP client for vim/vimscript
## Usage
```vim
function! Echo(res) abort
echo a:res
endfunction
let callback = function("Echo")
call curl#async#get("http://httpbin.org/ip", callback)
```
## TODOs
- [x] implement sync HTTP client (equivalent to the curl part of Vital.Web.HTTP)
- [x] implement async HTTP client using vimproc
- [ ] Add test and CI environment ([haya14busa/vim-ci-starterkit](https://github.com/haya14busa/vim-ci-starterkit) will be helpful)