blob: 65bd21a74e88e57c7c2359499fc82e421bd181a5 [file] [log] [blame]
Tests that resource bodies can be taken as streams.
Running test: testBasicUsage
data: The_quick_brown_fox_jumps_over_the_lazy_dog_0123456789The_quick_brown_fox_jumps_over_the_lazy_dog_01 (100) eof: false
eof: true
Running test: testLargeRead
data: (100000) eof: false
eof: true
Running test: testSmallNonOverlappingReads
data: (10000)
Running test: testSmallOverlappingReads
data: (100000)
Running test: testRead0
data: (0) eof: false
data: The_quick_brown_fox_jumps_over_the_lazy_dog_0123456789The_quick_brown_fox_jumps_over_the_lazy_dog_01 (100) eof: false
eof: true
Running test: testTakeTwice
Trying to take stream twice: Can only get response body on requests captured after headers received.
Running test: testReadAfterCancel
data: The_quick_brown_fox_jumps_over_the_lazy_dog_0123456789The_quick_brown_fox_jumps_over_the_lazy_dog_01 (100) eof: false
eof: true
Running test: testContinueAfterBodyTaken
Attempting to continue as is after taking request: Unable to continue request as is after body is taken
Running test: testReadAfterClose
Attempting read after close: Invalid stream handle