pomf clone in zig. experimenting with the web
Go to file
Luna 998d955f85 pin zhp commit 2021-04-12 21:34:43 -03:00
src move impl to zhp handlers 2021-04-12 17:37:53 -03:00
.gitignore add image uploads 2021-04-09 18:30:32 -03:00
README.md add basic usage and todo 2021-04-09 18:39:00 -03:00
build.zig attach zigmod deps to build.zig 2021-04-09 18:02:31 -03:00
zig.mod pin zhp commit 2021-04-12 21:34:43 -03:00

README.md

yet-another-pomf-clone

how build

get zigmod.

git clone ...
cd yet-another-pomf-clone
zigmod fetch
zig build
./zig-cache/bin/yet-another-pomf-clone

happy webscale

todo

  • multipart parsing (this is going to be fun)
  • env vars for configuration
  • handle 404 on fetch

how use

do the thing

curl -F "test=@/path/to/file/lol" 'http://localhost:8080/api/upload'