hes

Crates.iohes
lib.rshes
version1.0.0
created_at2026-01-18 21:06:04.437358+00
updated_at2026-01-18 21:06:04.437358+00
descriptionHttp Echo Server - a simple HTTP server that echoes back requests.
homepage
repositoryhttps://github.com/darkcodi/hes
max_upload_size
id2053107
size44,326
darkcodi (darkcodi)

documentation

README

HES — Http Echo Server

Lightning-fast HTTP echo server in Rust that mirrors your requests back as JSON

Perfect for testing webhooks, debugging APIs, or inspecting HTTP traffic

📦 Install

cargo install hes

Or run directly:

cargo run

🚀 Quick Start

Server starts on 0.0.0.0:8080 by default. Hit it with anything:

curl -X POST http://localhost:8080/hello?name=world \
  -H "Content-Type: application/json" \
  -d '{"msg": "hey"}'

📦 What You Get Back

{
  "method": "POST",
  "url": {
    "scheme": "http",
    "host": "localhost",
    "port": 8080,
    "path": "/hello",
    "query": "name=world",
    "full": "http://localhost:8080/hello?name=world"
  },
  "headers": {
    "content-type": "application/json",
    "user-agent": "curl/8.0.0"
  },
  "body": "{\"msg\": \"hey\"}",
  "http_version": "HTTP/1.1",
  "timestamp": "1737182400",
  "remote_address": "127.0.0.1:54321"
}

⚙️ Configuration

Change host/port:

hes --host 127.0.0.1 --port 3000

Or use env vars:

HOST=0.0.0.0 PORT=9090 hes

Built with ❤️ using Hyper + Tokio

Commit count: 12

cargo fmt