# File lib/rfuzz/client.rb, line 306
306:     def read_chunked_body(header)
307:       @sock.push(header.http_body)
308:       header.http_body = ""
309:       header.raw_chunks = []
310: 
311:       while true
312:         @notifier.read_chunk(:begins) if @notifier
313:         chunk = read_chunked_header
314:         header.raw_chunks << chunk
315:         if !chunk.last_chunk?
316:           header.http_body << chunk.http_body
317:           @notifier.read_chunk(:end) if @notifier
318:         else
319:           @notifier.read_chunk(:end) if @notifier
320:           break # last chunk, done
321:         end
322:       end
323: 
324:       header
325:     end