Core.register_service

Hi,

is there a way in a core.register_service to get the uri requested ?
I want to generate the body according to uri.

Regards.

simply applet.path :stuck_out_tongue:

hi,

The callback argument is an object of type applethttp. This class provides the requested path and also query string. you can look the docimentation here:

http://www.arpalert.org/src/haproxy-lua-api/1.6/index.html#applethttp-class

how can i do the same in tcp mode???