Crates.io | h10 |
lib.rs | h10 |
version | 0.6.18 |
source | src |
created_at | 2024-08-18 19:06:24.061745 |
updated_at | 2024-09-04 22:18:09.004915 |
description | Simple HTTP/1.0 Server |
homepage | |
repository | https://github.com/ancos2505/h10 |
max_upload_size | |
id | 1342883 |
size | 927,554 |
Simple HTTP/1.0 Server with no external dependencies (WIP)
cargo install h10
./h10-server --ip-address=127.0.0.1 --port=9000
or
./h10-server --help
The usage of --http1.0
argument will make the request from browsers return 400 (Bad Request) code.
./h10-server --http1.0 --ip-address=127.0.0.1 --port=9000
h10 (v0.3.4): Simple HTTP/1.0 Server - https://github.com/ancos2505/h10
Usage: h10-server [OPTION]
Options:
--help Display this message
--verbose Show raw contents from both Request and Response
--http1.0 Enable strict HTTP/1.0 strict mode (RFC1945)
WARNING: The nowday's browsers doesn't use it anymore
--ip-address=<IP ADDRESS> IPv4 or IPv6 to listening
--port=<PORT NUMBER> Port to listen [1024-65535] (RFC7605#section-4)
cargo run
curl -v localhost:8080
or open in your browser: http://localhost:8080/