"Fossies" - the Fresh Open Source Software Archive

Member "wrk-4.2.0/scripts/pipeline.lua" (7 Feb 2021, 262 Bytes) of package /linux/www/wrk-4.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 -- example script demonstrating HTTP pipelining
    2 
    3 init = function(args)
    4    local r = {}
    5    r[1] = wrk.format(nil, "/?foo")
    6    r[2] = wrk.format(nil, "/?bar")
    7    r[3] = wrk.format(nil, "/?baz")
    8 
    9    req = table.concat(r)
   10 end
   11 
   12 request = function()
   13    return req
   14 end