wrk.method = "POST" local chunks = { string.rep("a", 256), string.rep("b", 256), string.rep("c", 256), } local encoded = "" for _, chunk in ipairs(chunks) do encoded = encoded .. string.format("%x", #chunk) .. "\r\n" .. chunk .. "\r\n" end encoded = encoded .. "0\r\n\r\n" request = function() return "POST /echo HTTP/1.1\r\n" .. "Host: 127.0.0.1\r\n" .. "Transfer-Encoding: chunked\r\n" .. "Content-Type: application/octet-stream\r\n" .. "Connection: keep-alive\r\n\r\n" .. encoded end