8000 GitHub - RoghanBehm/mini-http: Minimal dependency (and minimally useful) HTTP/1.1 server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Minimal dependency (and minimally useful) HTTP/1.1 server

Notifications You must be signed in to change notification settings

RoghanBehm/mini-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal, handwritten HTTP/1.1 server.

Current Features

  • HTTP/1.1 support with persistent connections
  • Basic routing (/echo, /user-agent, /files)
  • File serving and POST file upload
  • Optional gzip compression (Accept-Encoding: gzip)
  • Concurrency handled via threadpool
Header Purpose
Host Required by HTTP/1.1; used for request validation (not enforced here)
User-Agent Reflected in /user-agent route
Accept-Encoding Supports gzip (if present); otherwise falls back to plain text
Connection Supports close, connections stay open by default
Content-Length Used to determine POST request body size
Content-Type Validates uploaded data in POST requests (application/octet-stream)

Compiling

  • Install zlib development package
  • Run make
    • Developed on a Linux system, but Windows compilation should work with MinGW or MSYS2.

About

Minimal dependency (and minimally useful) HTTP/1.1 server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0