acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

zeroeight/tiny-http

Public
Star9

An HTTP/1.0 server for Linux in x86-64 assembly. No libc; every build starts it and curls it.

Code
Blame·5 commits across 24 linesoldernewer
Answer every connection with 200 OKAug 14 1# Verified builds for tiny-http.
2
3[project]
4isa = "x86-64"
5assembler = "nasm"
6target = "Linux x86-64, static ELF"
7
8[[step]]
9name = "assemble"
Serve index.html with a Content-Length counted at run timeSep 21 10run = ["nasm", "-f", "elf64", "-I", "src/", "-o", "build/server.o", "src/server.asm"]
12[[step]]
13name = "link"
Link with -s: no symbol table in the shipped binarySep 21 14run = ["ld.lld", "-s", "-o", "build/tiny-http", "build/server.o"]
17name = "serve real requests"
18on = "linux"
19run = ["sh", "test/smoke.sh"]
Route table: /, /health, and a 404 for everything elseAug 23 20expect = "smoke: 3 requests answered"
23path = "build/tiny-http"
24max_size = 4096