hurley-0.1.0 is not a library.
hurley
A curl-like HTTP client with performance testing capabilities, written in Rust.
Features
- HTTP Methods: GET, POST, PUT, DELETE, PATCH, HEAD
- Custom Headers:
-H "Content-Type: application/json" - Request Body: Inline (
-d) or from file (-f) - Follow Redirects:
-L - Verbose Output:
-v - Performance Testing: Concurrent requests with latency metrics
Installation
Or build from source:
Usage
Basic HTTP Requests
# Simple GET request
# POST with JSON body
# Include response headers
# Verbose output
# Follow redirects
Performance Testing
# 100 requests with 10 concurrent connections
# Performance test with dataset
# JSON output for programmatic use
Dataset Format
Create a JSON file with request definitions:
Performance Metrics
The performance test output includes:
- Request Summary: Total, successful, failed requests
- Timing: Total duration, requests/second
- Latency Distribution: Min, max, avg, p50, p95, p99
═══════════════════════════════════════════════════════════
PERFORMANCE RESULTS
═══════════════════════════════════════════════════════════
📊 Request Summary
Total Requests: 100
Successful: 98
Failed: 2
Error Rate: 2.00%
⏱️ Timing
Total Duration: 5234.12 ms
Requests/sec: 19.11
📈 Latency Distribution
Min: 45.23 ms
Max: 312.45 ms
Avg: 89.67 ms
p50 (Median): 78.34 ms
p95: 198.23 ms
p99: 287.12 ms
═══════════════════════════════════════════════════════════
License
MIT License - see LICENSE for details.
Author
Dursun Koc - @dursunkoc