This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
13
unikernel/duniverse/ocaml-h1/examples/script/upgrade-connect
Executable file
13
unikernel/duniverse/ocaml-h1/examples/script/upgrade-connect
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
function headers {
|
||||
printf "\
|
||||
GET / HTTP/1.1\r
|
||||
Host: localhost\r
|
||||
Connection: upgrade\r
|
||||
\r
|
||||
"
|
||||
}
|
||||
|
||||
( headers; echo hello; cat; echo bye ) | nc localhost 8080 --close
|
||||
Loading…
Add table
Add a link
Reference in a new issue