mirror of
https://github.com/guilhermewerner/http
synced 2025-06-15 19:24:19 +00:00
12 lines
230 B
Rust
12 lines
230 B
Rust
#![allow(non_snake_case)]
|
|
|
|
use std::net::TcpListener;
|
|
|
|
fn main() {
|
|
let listener = TcpListener::bind("127.0.0.1:7878").unwrap();
|
|
|
|
for stream in listener.incoming() {
|
|
Http::HandleConnection(stream.unwrap());
|
|
}
|
|
}
|