HTTP Server Implementation

Functional HTTP server built in C with Linux sockets

System Developer2025completed90+ hours
HTTP Server Implementation

Description

Built a functional HTTP/1.1 server in C on top of raw Linux sockets, handling the full request lifecycle from connection accept through response write. Parsed request lines, headers, and methods with POSIX regex, supporting GET and PUT against a file-backed resource store. Implemented robust connection handling, bounded buffers, and careful error-path management to stay memory-safe and stable under concurrent load and malformed input. Validated correctness against RFC 2616 semantics and exercised the server with stress tests to confirm stability under sustained traffic. Organized the codebase with a Makefile build and modular request/response handling for maintainability.

Key Metrics

RFC 2616 Compliant
Memory Safe
Stable Under Stress Tests

Tech Stack

CLinuxSocketsHTTPRegexMakefile

Categories

CLinuxSystems