Skip to content

A nano lightweight, HTTP server implementation in C.

Notifications You must be signed in to change notification settings

V8V88V8V88/nanoHTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nanoHTTP

A nano lightweight, educational HTTP server implementation in C. Ideal for learning network programming basics and understanding HTTP server operations. Features simple GET and POST request handling in a single-file design.

Run

  1. Compile:

    gcc nanohttp.c -o nanohttp
    
  2. Execute:

    ./nanohttp
    
  3. Server runs on port 8080.

Test

GET request:

curl http://localhost:8080

POST request:

curl -X POST -d "Hello" http://localhost:8080

About

A nano lightweight, HTTP server implementation in C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages