🚀 HTTP File Runner
A simple command-line tool written in Rust that parses .http files and executes HTTP requests, providing colored output with emojis to indicate success or failure
Originally written in Zig, ported to Rust due to limitations in Zig's standard library HTTP client APIs for configuring insecure HTTPS connections.
Features
Multiple Files
Process multiple .http files in a single run or discover all files recursively
Auto Discovery
Find and execute all .http files in your project with --discover mode
Verbose Output
Detailed request and response information for debugging and analysis
Logging
Save all output to files for CI/CD integration and reporting
Assertions
Validate status codes, response body content, and headers
Variables
Use variables and environment files for flexible configuration
Request Variables
Chain requests by passing data between HTTP calls
Installation
Quick Start
Basic Usage
# Run a single .http file
httprunner requests.http
# Run with verbose output
httprunner requests.http --verbose
# Discover and run all .http files
httprunner --discover
# Run with logging
httprunner requests.http --log results.txt
Sample .http File
# Simple GET request
GET https://api.github.com/users/octocat
# POST with headers and body
POST https://httpbin.org/post
Content-Type: application/json
{
"name": "test",
"value": 123
}
Ready to dive deeper?
Read the Complete Guide