haproxy/reg-tests/lua
William Lallemand 0748799ad1
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
FreeBSD / clang (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
MEDIUM: httpclient/lua: allow multiple requests from a single core.httpclient() instance
Refactor the Lua HTTP client to defer initialization. core.httpclient()
no longer initializes the internal HTTP client immediately. Instead,
initialization now occurs within hlua_httpclient_send() when a request
method (e.g., get, put, head) is invoked.

The HTTPClient class now serves as a factory for accessing methods, while
a new class, HTTPClientRequest, has been introduced to represent individual
requests and manage the HTTP client lifecycle.

This change allows multiple requests to be executed using a single
HTTP client instance:

  local hc = core.httpclient()
  local res1 = hc:get({url = "...", headers = ...})
  local res2 = hc:post({url = "...", headers = ...})
  local res3 = hc:put({url = "...", headers = ...})

This refactor maintains backward compatibility, as existing scripts that
instantiate a new core.httpclient() for every request will continue to
work as expected.
2026-06-14 01:49:54 +02:00
..
bad_http_clt_req_duration.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
bad_http_clt_req_duration.vtc REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests 2026-04-09 14:32:12 +02:00
certs REGTESTS: ssl: Move all the SSL certificates, keys, crt-lists inside "certs" directory 2025-12-08 10:40:59 +01:00
close_wait_lf.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
close_wait_lf.vtc REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests 2026-04-09 14:32:12 +02:00
h_txn_get_priv.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
h_txn_get_priv.vtc REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests 2026-05-28 11:36:02 +02:00
httpclient_action.lua REGTESTS: httpclient/lua: test the lua task timeout with the httpclient 2022-10-20 18:48:17 +02:00
httpclient_action.vtc REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests 2026-04-09 14:32:12 +02:00
lua_httpclient.lua MEDIUM: httpclient/lua: allow multiple requests from a single core.httpclient() instance 2026-06-14 01:49:54 +02:00
lua_httpclient.vtc REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests 2026-05-28 11:36:02 +02:00
lua_socket.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
lua_socket.vtc REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests 2026-05-28 11:36:02 +02:00
set_var.lua MEDIUM: lua: Add ifexist parameter to set_var 2020-05-25 08:12:35 +02:00
set_var.vtc REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests 2026-04-09 14:32:12 +02:00
txn_get_priv-print_r.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
txn_get_priv-thread.vtc REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests 2026-04-09 14:32:12 +02:00
txn_get_priv.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
txn_get_priv.vtc REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests 2026-05-28 11:36:02 +02:00
wrong_types_usage.lua REGTEST: rename the reg test files. 2019-04-23 15:37:03 +02:00
wrong_types_usage.vtc REGTESTS: lua: add tune.lua.openlibs to all Lua reg-tests 2026-04-09 14:32:12 +02:00