A Zed extension for .http files, inspired by the HTTP Client in IntelliJ IDEA.
Note
Initial setup is required before using these features. See Installation.
Each request gets a ▶ button. Clicking it sends the request and shows the response in the terminal panel.
Highlights .http and .rest files, including JSON and XML in request bodies with proper indentation.
Define variables with @name = value at the top of the file and reference them with {{name}} in subsequent requests.
Send a file as the request body with < ./payload.json. Variables inside the referenced file are substituted.
JSON and XML response bodies are pretty-printed. Each response includes the status line, content length, and elapsed time in milliseconds.
All requests in the file appear in Zed's outline panel, named by their ### section title.
Each request becomes a Zed task labeled {METHOD} requests | {section title}. Past runs are available from Task: spawn.
To use this extension, complete the following two steps. Due to current Zed extension API limitations, the runner binary and task definition cannot be shipped with the extension itself.
Download the prebuilt binary for your platform from Releases and place it on your PATH. ~/.local/bin/ is recommended (no sudo required); make sure the directory is on your PATH.
mkdir -p ~/.local/bin
tar -xzf httpc-x86_64-unknown-linux-gnu.tar.gz -C ~/.local/binAdd the following to your global ~/.config/zed/tasks.json (or per-project .zed/tasks.json):
[
{
"label": "$ZED_CUSTOM_method $ZED_STEM | $ZED_CUSTOM_title",
"command": "httpc",
"args": ["--file", "$ZED_FILE", "--line", "$ZED_ROW"],
"tags": ["http-request"],
"reveal": "no_focus",
"use_new_terminal": false,
"allow_concurrent_runs": false
}
]Once both are in place, click the ▶ button next to any request to execute it.
- tie304/zed-http — alternative Zed extension that bridges to the httpYac CLI.
This extension uses the following third-party tree-sitter grammars:
rest-nvim/tree-sitter-httpfor parsing.httpfiles — MIT License, © 2021 NTBBloodbath.tree-sitter-grammars/tree-sitter-xmlfor highlighting XML request bodies — MIT License, © 2023 ObserverOfTime.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.





