This repository contains examples of minimal HTTP servers written in various programming languages. Each server responds to HTTP requests with the same simple HTML message: <h1>Hello World</h1>.
- C
- C++
- Java
fucking - Go
- Rust
- V
- Python
- JavaScript (Node.js)
Ensure you have the necessary tools and compilers installed for each language:
- C/C++: GCC or Clang
- Java: JDK
- Go: Go Compiler
- Rust: Rust Compiler (Cargo)
- V: V Compiler
- Python: Python Interpreter
- JavaScript: Node.js
-
Clone the repository:
git clone https://github.com/omid3699/simple_http_server cd simple_http_server -
Follow the instructions for running the example:
- C/C++:
gcc server.c -o server ./server
- Java:
javac Server.java java Server
- Go:
go run server.go
- Rust:
rustc server.rs ./server
- V:
v run server.v
- Python:
python server.py
- JavaScript:
node server.js
- C/C++:
-
Access the server in your browser at http://localhost:8080.
Contributions are welcome! If you want to add more languages or improve existing implementations, feel free to submit a pull request.