- all
go-ipp
prepare request logic is omitted to simplify the example cupsRequestBody
is awireshark
-dumped http-body ofGetPrinters
request to CUPS.printers.conf
contains 1446 printers defined.
docker-compose up -d
direct http.Response.Body parsing, without buffering
# run the test 100 times, multiple (or even all) fails are expected
go test -run TestMainDirect -count 100
read entire http.Response.Body into a byte slice, parse bytes.NewReader of that slice.
# run the test 100 times, none of the tries are expected to fail
go test -run TestMainDirect -count 100