Skip to content

omid3699/simple_http_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP Server Examples in Multiple Languages

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>.

Supported Languages

  • C
  • C++
  • Java fucking
  • Go
  • Rust
  • V
  • Python
  • JavaScript (Node.js)

Prerequisites

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

Usage

  1. Clone the repository:

    git clone https://github.com/omid3699/simple_http_server
    cd simple_http_server
  2. 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
  3. Access the server in your browser at http://localhost:8080.

Contributions

Contributions are welcome! If you want to add more languages or improve existing implementations, feel free to submit a pull request.

About

minimal http server in various languages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published