Linux command
http-prompt 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Example
http-prompt
Example
http-prompt [http://example.com]
Example
http-prompt [localhost:8000/api] --auth [username:password]
说明
http-prompt is an interactive command-line HTTP client featuring autocomplete and syntax highlighting. It provides a REPL (Read-Eval-Print Loop) environment for exploring and testing HTTP APIs. Built on top of HTTPie, it offers an interactive way to build HTTP requests with features like tab completion for HTTP methods, headers, and previously used values. Sessions persist settings and can be resumed. Within the prompt, you can set headers, query parameters, and body data incrementally, then execute requests with standard HTTP methods (GET, POST, PUT, DELETE, etc.).
参数
- --auth _USER:PASS_
- Set HTTP basic authentication credentials
- --version
- Display version information
FAQ
What is the http-prompt command used for?
http-prompt is an interactive command-line HTTP client featuring autocomplete and syntax highlighting. It provides a REPL (Read-Eval-Print Loop) environment for exploring and testing HTTP APIs. Built on top of HTTPie, it offers an interactive way to build HTTP requests with features like tab completion for HTTP methods, headers, and previously used values. Sessions persist settings and can be resumed. Within the prompt, you can set headers, query parameters, and body data incrementally, then execute requests with standard HTTP methods (GET, POST, PUT, DELETE, etc.).
How do I run a basic http-prompt example?
Run `http-prompt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --auth _USER:PASS_ do in http-prompt?
Set HTTP basic authentication credentials