746e6f3f8e
Migrate the httpclient:get() method to named arguments so we can specify optional arguments. This allows to pass headers as an optional argument as an array. The () in the method call must be replaced by {}: local res = httpclient:get{url="http://127.0.0.1:9000/?s=99", headers= {["X-foo"] = { "salt" }, ["X-bar"] = {"pepper" }}} |
||
---|---|---|
.. | ||
bad_http_clt_req_duration.lua | ||
bad_http_clt_req_duration.vtc | ||
close_wait_lf.lua | ||
close_wait_lf.vtc | ||
common.pem | ||
h_txn_get_priv.lua | ||
h_txn_get_priv.vtc | ||
lua_httpclient.lua | ||
lua_httpclient.vtc | ||
lua_socket.lua | ||
lua_socket.vtc | ||
set_var.lua | ||
set_var.vtc | ||
txn_get_priv-print_r.lua | ||
txn_get_priv-thread.vtc | ||
txn_get_priv.lua | ||
txn_get_priv.vtc | ||
wrong_types_usage.lua | ||
wrong_types_usage.vtc |