aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
AgeCommit message (Collapse)AuthorFilesLines
2026-07-01xf: single-file HTTP file transfer serverHEADmasterLena1-0/+246
Serve a directory tree over HTTP through one embedded page: a listing with download links and a multi-file upload form. Filesystem access is confined to the served root with os.Root, and only regular files are served. Uploads are bounded by size and part count, and every file is staged in the target directory before any is renamed into place, so a refused or interrupted request leaves the directory untouched. Standard library only, no third-party dependencies.