Emit chunks with specific sizes and delays

126 views
Skip to first unread message

BoD

unread,
Feb 14, 2022, 12:44:36 PM2/14/22
to wiremock-user
Hi!

I am new to WireMock and was wondering if there is a way to configure a response to return chunks with specific sizes and delays. This would be useful to test some specific streaming cases. 

I've seen there is a `withChunkedDribbleDelay` option which takes a number of chunks and a total duration. That is something, but for my tests I would need more control. 

Is that a thing?

Thanks.a lot!

-- 
BoD

nasava

unread,
Mar 21, 2022, 5:48:56 PM3/21/22
to wiremock-user
Hi!

the streaming of a response would be a feature I would be interested in also.

But for me it did not work the way I wanted. The HTTP client only got the response after I "closed" the stream, by returning -1.

Anyone got something like this working? Is response streaming supported by WireMock?

Thanks in advance!
Nasava
Reply all
Reply to author
Forward
0 new messages