<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/haproxy.git/reg-tests/lua/lua_httpclient.lua, branch httpclient-lua-2021-10-28</title>
<subtitle>github.com: haproxy/haproxy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/'/>
<entry>
<title>REGTESTS: lua: test httpclient with boady streaming</title>
<updated>2021-10-28T14:06:38+00:00</updated>
<author>
<name>William Lallemand</name>
<email>wlallemand@haproxy.org</email>
</author>
<published>2021-10-28T13:57:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=16650d178162d7d22e64008f014dc6736dfec54a'/>
<id>16650d178162d7d22e64008f014dc6736dfec54a</id>
<content type='text'>
Improve the httpclient reg-tests to test the streaming,

The regtest now sends a big payload to vtest, then receive a payload
from vtest and send it again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve the httpclient reg-tests to test the streaming,

The regtest now sends a big payload to vtest, then receive a payload
from vtest and send it again.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: httpclient/lua: support more HTTP methods</title>
<updated>2021-10-27T08:19:49+00:00</updated>
<author>
<name>William Lallemand</name>
<email>wlallemand@haproxy.org</email>
</author>
<published>2021-10-26T09:43:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=dc2cc9008bf2518e4a4130c224983bc4c710d386'/>
<id>dc2cc9008bf2518e4a4130c224983bc4c710d386</id>
<content type='text'>
Add support for HEAD/PUT/POST/DELETE method with the lua httpclient.

This patch use the httpclient_req_gen() function with a different meth
parameter to implement this.

Also change the reg-test to support a POST request with a body.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for HEAD/PUT/POST/DELETE method with the lua httpclient.

This patch use the httpclient_req_gen() function with a different meth
parameter to implement this.

Also change the reg-test to support a POST request with a body.
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: httpclient: support payload within a buffer</title>
<updated>2021-10-27T08:19:41+00:00</updated>
<author>
<name>William Lallemand</name>
<email>wlallemand@haproxy.org</email>
</author>
<published>2021-10-25T17:48:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=dec25c3e14754425a10ed386bd9bceab6af49573'/>
<id>dec25c3e14754425a10ed386bd9bceab6af49573</id>
<content type='text'>
httpclient_req_gen() takes a payload argument which can be use to put a
payload in the request. This payload can only fit a request buffer.

This payload can also be specified by the "body" named parameter within
the lua. httpclient.

It is also used within the CLI httpclient when specified as a CLI
payload with "&lt;&lt;".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
httpclient_req_gen() takes a payload argument which can be use to put a
payload in the request. This payload can only fit a request buffer.

This payload can also be specified by the "body" named parameter within
the lua. httpclient.

It is also used within the CLI httpclient when specified as a CLI
payload with "&lt;&lt;".
</pre>
</div>
</content>
</entry>
<entry>
<title>MINOR: httpclient/lua: supports headers via named arguments</title>
<updated>2021-10-06T13:21:02+00:00</updated>
<author>
<name>William Lallemand</name>
<email>wlallemand@haproxy.org</email>
</author>
<published>2021-10-06T08:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=746e6f3f8efe5646201f8d49d833393bacbc8c02'/>
<id>746e6f3f8efe5646201f8d49d833393bacbc8c02</id>
<content type='text'>
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" }}}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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" }}}
</pre>
</div>
</content>
</entry>
<entry>
<title>REGTESTS: lua: test the httpclient:get() feature</title>
<updated>2021-09-24T17:05:53+00:00</updated>
<author>
<name>William Lallemand</name>
<email>wlallemand@haproxy.org</email>
</author>
<published>2021-09-24T17:02:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=039cc083ffe3860033c7d6bbf79504b48f81cd84'/>
<id>039cc083ffe3860033c7d6bbf79504b48f81cd84</id>
<content type='text'>
This reg-test is heavily inspired by the lua_socket.vtc one.

It replaces the HTTP/1.1 request made manually with a socket object with
an httpclient object.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reg-test is heavily inspired by the lua_socket.vtc one.

It replaces the HTTP/1.1 request made manually with a socket object with
an httpclient object.
</pre>
</div>
</content>
</entry>
</feed>
