Documentation
¶
Overview ¶
upload demonstrates POST body collection with a max-body limit. Oversize uploads get 413 automatically.
CGO_ENABLED=1 go run -tags gogo ./examples/upload # Small upload echoes back the SHA-256 of the body. curl -XPOST --data-binary @go.mod http://localhost:3003/upload # Larger than 64 KiB → 413 dd if=/dev/zero bs=1024 count=100 | curl -XPOST --data-binary @- http://localhost:3003/upload
Click to show internal directories.
Click to hide internal directories.