English | 中文
Edit HTTP requests and inspect responses in Neovim (request left / response right). Uses curl when available, else Python urllib.
| Component |
Notes |
| Neovim 0.9+ |
|
| curl or Python3 |
Prefer curl; fallback scripts/http_req.py |
Plug '/path/to/nvimplugins/httpbuf'
| Action |
Description |
:HttpBuf / :Http |
Open editor (sample request) |
:HttpBuf GET https://example.com |
Open with first line |
:HttpSend |
Open using current buffer as request |
<leader>http |
Open (configurable) |
GET https://httpbin.org/get
Accept: application/json
POST https://httpbin.org/post
Content-Type: application/json
{"hello":"world"}
| Key |
Action |
r / Ctrl-Enter |
Send |
e |
Focus request |
y |
Copy response |
L |
Toggle language |
q / Esc |
Close |
require("httpbuf").setup({
python = "python",
timeout = 30,
prefer_curl = true,
ui_lang = "auto",
keys_open = "<leader>http",
})