Skip to content

just a quick proof of concept (not intended for actual usage)

Notifications You must be signed in to change notification settings

Leonss23/poc-web-server-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Server POC in Zig

Listens on for a single HTTP request receiving a file path, looks for the requested file, and serves it.

Uses OS's socket API for network transfer.

Usage

Hardcoded to listen on 0.0.0.0:8080 assuming zig is installed

  1. Compile and run the program zig build run.
  2. Send HTTP request with file path to URL wget 0.0.0.0:8080/index.html

About

just a quick proof of concept (not intended for actual usage)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published