I am using jmeter to send a HTTP POST request. the server responds with a chunked http response 200 ok and I need to parse the initial chunk. However jmeter waits for all the response chunks. I tried with the http sampler and http raw request sampler. In both cases the chunks are not parsed individually.
It can be achieved only by using JSR223 Sampler and custom Groovy scripting (or alternatively writing a brand new JMeter Plugin)
Example code you can use as the basis can be found in How do you read and print a chunked HTTP response using java.net.http as chunks arrive? answer