### Caddy WebSocket Test

cat, type=lines, input=first line 0123456789ABCDEF0123456789ABCD✔✘EFabcdef ghijklmnopqrstuvwxyz
Aim: as in v0.11, default setting.

cat, type=lines, bufsize=32, input=first line 0123456789ABCDEF0123456789ABCDEFabcdef ghijklmnopqrstuvwxyz hex
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=30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 30 31 32 33 34 35 36 37 38 39 41 E2 9C 94 46 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 30 31 32 33 34 35 36 37 38 39 41 41 42 E2 9C 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A hex
Aim: Line 2 ends with an incomplete UTF-8 sequence, so web browser drops connection automatically.

cat, type=text, input=first line 0123456789ABCDEF0123456789ABCD✔✘EFabcdef ghijklmnopqrstuvwxyz
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=first line 0123456789ABCDEF0123456789ABCD✔✘EFabcdef ghijklmnopqrstuvwxyz
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=02 03 16 30 41 52 63 00 00 49 9D 00 2A 01 FA C6 FF 37 64 77 D8 FF E1 FF CF 4C 5B 57 8A 00 0D 0A 20 41 hex✅
Aim: Test type=binary.

cat, type=binary, bufsize=32, input=02 03 16 30 41 52 63 00 00 49 9D 00 2A 01 FA C6 FF 37 64 77 D8 FF E1 FF CF 4C 5B 57 8A 00 0D 0A 20 41 hex✅
Aim: Same input as Test 5, Web browser receives 2 packets when exceeding server-side buffer size.

curl, type=lines, stdout=, url=
Aim: as in v0.11, default setting. Cannot display CURL progress messages at real-time. Also, whitespaces are trimmed.

curl, type=text, stdout=, url=
Aim: Display real-time CURL progress messages. Do not trim whitespaces.

curl, type=binary, stdout=, url=
Aim: Display CURL binary output.

curl, type=binary, bufsize=32, stdout=, url=
Aim: Display CURL binary output. Web browser receives more packets when exceeding server-side buffer size.