Caddy WebSocket Test

cat, type=lines, input=
Aim: as in v0.11, default setting.
cat, type=lines, bufsize=32, input=
Aim: Same input as Test 1, Line 2 is longer than bufsize, so server-side error occurred (bufio.Scanner: token too long).
cat, type=lines, bufsize=32, input=
Aim: Line 2 ends with an incomplete UTF-8 sequence, so web browser drops connection automatically.
cat, type=text, input=
Aim: Same input as Test 1, but use type=text. Web browser receives Line 2 in a single websocket message.
cat, type=text, bufsize=32, input=
Aim: Same input as Test 2A, but use type=text. Server-side buffer can handle the case that UTF-8 character cut into 2 halves.
cat, type=binary, input=
Aim: Test type=binary.
cat, type=binary, bufsize=32, input=
Aim: Same input as Test 5, Web browser receives 2 packets when exceeding server-side buffer size.
curl, type=lines, ,
Aim: as in v0.11, default setting. Cannot display CURL progress messages at real-time. Also, whitespaces are trimmed.
curl, type=text, ,
Aim: Display real-time CURL progress messages. Do not trim whitespaces.
curl, type=binary, ,
Aim: Display CURL binary output.
curl, type=binary, bufsize=32, ,
Aim: Display CURL binary output. Web browser receives more packets when exceeding server-side buffer size.