Network Protocol Implementation

HTTP/1.1 Over Raw TCP

A from-scratch HTTP/1.1 server written in Go, built directly on top of TCP sockets without net/http.

This demo site exercises request parsing, routing, path/query parameter handling, static file serving, chunked transfer encoding, media streaming, and a simple cookie-based login flow.

View the source code on Github

Go HTTP/1.1 TCP Docker EC2 Cloudflare

Login


    

Request

Format: key=value or just flag. Values are URL-encoded. Empty values are allowed.

Examples

Try: /api/echo/123?flag=true&test=a%3Db
Router matches on path only; request parser exposes QueryParams and PathParams.

Path Param Test

Request Preview

Note: browsers add headers we can't read back (Host, User-Agent, etc.). This preview shows what our JS constructs.


    

Response


    

MP4 Test

Click to fetch and play the MP4 (served as Content-Length).


    

MP4 Test (chunked)

Click to fetch /video-chunked (Transfer-Encoding: chunked), assemble the bytes, then play.