[PATCH] DOC/MINOR: fix typos in the lua-api document

2022-05-10 Thread Boyang Li
Fixes a few typos in the Lua API document. --- doc/lua-api/index.rst | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index d1dd3397e..515d8853b 100644 --- a/doc/lua-api/index.rst +++ b/doc/lua-api/index.rst @@ -1357,7

Re: missing date() fetcher in lua api in haproxy 2.2

2020-08-07 Thread Christopher Faulet
Le 31/07/2020 à 15:42, Christopher Faulet a écrit : Le 29/07/2020 à 01:29, James Brown a écrit : In earlier versions of haproxy, the txn.f object had a `date()` method when called from a fetch context which returned the current unix timestamp. In HAproxy 2.2, this method is removed. [...] My

Re: missing date() fetcher in lua api in haproxy 2.2

2020-07-31 Thread Christopher Faulet
Le 29/07/2020 à 01:29, James Brown a écrit : In earlier versions of haproxy, the txn.f object had a `date()` method when called from a fetch context which returned the current unix timestamp. In HAproxy 2.2, this method is removed. [...] My best guess is that this is related to ae6f125c

missing date() fetcher in lua api in haproxy 2.2

2020-07-28 Thread James Brown
4e8daafc2a2> but I don't really understand how sample fetchers are mapped into the Lua API, so this is just a guess. Is it possible that two-optional-argument sample fetchers just don't work? I can work around this by doing `os.time()` but I'd just as soon be reusing haproxy's unix timestamp rather t

Re: [PATCH] DOC: lua-api/index.rst small example fixes, spelling correction.

2015-11-09 Thread Willy Tarreau
Hi Pieter, On Sun, Nov 08, 2015 at 04:44:18PM +0100, PiBa-NL wrote: > Hi List, Willy, > > Attached some small example fixes, spelling correction. > Hope its ok like this :). Applied, thanks! Willy

[PATCH] DOC: lua-api/index.rst small example fixes, spelling correction.

2015-11-08 Thread PiBa-NL
Hi List, Willy, Attached some small example fixes, spelling correction. Hope its ok like this :). Regards, PiBa-NL From fdecc44b9bf94bfaceb9d0335ea3a185e575cd86 Mon Sep 17 00:00:00 2001 From: Pieter Baauw <piba.nl@gmail.com> Date: Sun, 8 Nov 2015 16:38:08 +0100 Subject: [PATCH] DOC: l

Re: lua api

2015-03-17 Thread Baptiste
On Tue, Mar 17, 2015 at 8:04 PM, Joe Williams williams@gmail.com wrote: List, I am trying to figure out how to use the new lua API. After reading https://raw.githubusercontent.com/yuxans/haproxy/master/doc/lua-api/index.rst it still isn't clear to me how to get the client IP

lua api

2015-03-17 Thread Joe Williams
List, I am trying to figure out how to use the new lua API. After reading https://raw.githubusercontent.com/yuxans/haproxy/master/doc/lua-api/index.rst it still isn't clear to me how to get the client IP of a connection. Is information about the socket available inside lua? If so, any suggestions