pomf clone in zig. experimenting with the web
Find a file
2021-04-10 15:29:27 -03:00
src multipart: add body reading 2021-04-10 15:29:27 -03:00
.gitignore add image uploads 2021-04-09 18:30:32 -03:00
build.zig attach zigmod deps to build.zig 2021-04-09 18:02:31 -03:00
README.md add basic usage and todo 2021-04-09 18:39:00 -03:00
zig.mod add multipart parser beginnings 2021-04-10 02:03:43 -03:00

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'