Running

HTTP-C

A lightweight, header-only embedded HTTP server for C applications. Zero dependencies, maximum performance.

View on GitHub Quick Start โ†’
๐Ÿ“ฆ

Header-Only

Just include http.h and you're ready. No complex build systems, no external libraries required.

โšก

Zero Dependencies

Uses only the standard C library. Compiles anywhere with a C99 compiler.

๐Ÿ”’

Secure by Default

Built-in path traversal protection, input validation, and safe buffer handling.

๐Ÿ’พ

Memory Efficient

Static memory pools eliminate heap fragmentation. Perfect for embedded systems.

๐ŸŒ

Cross-Platform

Works on Linux, macOS, Windows, and embedded platforms with POSIX support.

๐Ÿ“

File Serving

Serve static files with automatic MIME type detection and directory listing.

<50KB
Binary Size
1
Header File
0
Dependencies
C99
Standard
main.c
// Define implementation in ONE source file
#define HTTP_IMPLEMENTATION
#include "http.h"

int main(void) {
    http_server_t server;
    
    // Initialize with defaults
    http_server_init(&server);
    
    // Start on port 8080
    http_server_start(&server, 8080);
    
    return 0;
}