2021-12-17 14:58:35 +00:00
|
|
|
#!/dev/null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-05 15:02:38 +00:00
|
|
|
::// clients / ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-17 14:58:35 +00:00
|
|
|
<< clients / nghttp / https
|
2023-03-05 15:26:36 +00:00
|
|
|
exec -- "${ZRUN}" ':: clients / nghttp' https 127.9.185.194:8443 "${@}"
|
2021-12-17 14:58:35 +00:00
|
|
|
!!
|
|
|
|
|
|
|
|
<< clients / nghttp / http2
|
2023-03-05 15:26:36 +00:00
|
|
|
exec -- "${ZRUN}" ':: clients / nghttp' https 127.9.185.194:8444 "${@}"
|
2021-12-17 14:58:35 +00:00
|
|
|
!!
|
|
|
|
|
|
|
|
--<< clients / nghttp
|
|
|
|
test "${#}" -ge 2
|
|
|
|
_url_base="${1}://${2}"
|
|
|
|
shift -- 2
|
|
|
|
if test "${#}" -ge 1 ; then
|
|
|
|
if test "${1:0:1}" != '-' ; then
|
|
|
|
_path="${1}"
|
|
|
|
_path="${_path#/}"
|
|
|
|
shift -- 1
|
|
|
|
else
|
|
|
|
_path=''
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
_path=''
|
|
|
|
fi
|
|
|
|
exec -- \
|
2023-03-05 15:26:36 +00:00
|
|
|
"${ZRUN}" ':: tools / nghttp' \
|
2021-12-17 14:58:35 +00:00
|
|
|
--null-out \
|
|
|
|
--stat \
|
|
|
|
"${@}" \
|
|
|
|
-- \
|
|
|
|
"${_url_base}/${_path}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<< clients / curl / http
|
2023-03-05 15:26:36 +00:00
|
|
|
exec -- "${ZRUN}" ':: clients / curl' http 127.9.185.194:8080 "${@}" --http1.1
|
2021-12-17 14:58:35 +00:00
|
|
|
!!
|
|
|
|
|
|
|
|
<< clients / curl / https
|
2023-03-05 15:26:36 +00:00
|
|
|
exec -- "${ZRUN}" ':: clients / curl' https 127.9.185.194:8443 "${@}" --http1.1
|
2021-12-17 14:58:35 +00:00
|
|
|
!!
|
|
|
|
|
|
|
|
<< clients / curl / http2
|
2023-03-05 15:26:36 +00:00
|
|
|
exec -- "${ZRUN}" ':: clients / curl' https 127.9.185.194:8444 "${@}" --http2
|
2021-12-17 14:58:35 +00:00
|
|
|
!!
|
|
|
|
|
|
|
|
<< clients / curl
|
|
|
|
test "${#}" -ge 2
|
|
|
|
_url_base="${1}://${2}"
|
|
|
|
shift -- 2
|
|
|
|
if test "${#}" -ge 1 ; then
|
|
|
|
if test "${1:0:1}" != '-' ; then
|
|
|
|
_path="${1}"
|
|
|
|
_path="${_path#/}"
|
|
|
|
shift -- 1
|
|
|
|
else
|
|
|
|
_path=''
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
_path=''
|
|
|
|
fi
|
|
|
|
exec -- \
|
2023-03-05 15:26:36 +00:00
|
|
|
"${ZRUN}" ':: tools / curl' \
|
2021-12-17 14:58:35 +00:00
|
|
|
--compressed \
|
|
|
|
--output /dev/stdout \
|
|
|
|
--dump-header /dev/stdout \
|
|
|
|
"${@}" \
|
|
|
|
-- \
|
|
|
|
"${_url_base}/${_path}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|