Closed radarsh closed 5 years ago
More information please.
I have multipart response support, if that's what you mean.
If not, please supply a detailed example. The link doesn't tell me anything.
No, I'm not asking about multipart response support. I'm specifically asking about chunked Transfer Encoding. This is well explained in MDN. In other words, this feature if implemented, would allow for the response to be chunked up and sent in several pieces (stream) rather than one monolithic unit.
Wiremock's withChunkedDribbleDelay
allows us to simulate slow network connections by introducing a delay before each chunk is sent out.
Wikipedia also does a good job at explaining this.
I'll see what I can do. It may be a few months though as I have other higher priorities right now.
This support will be added during the 2.0 re-write. It will be something like:
response {
conent someBytes, IMAGE_JPG
chunked {
chunks 4
delay 0..10 // or fixed number
}
}
which will respond with the given data in the specified number of chunks delivered with a given delay between each chunk.
Figured out how to make this work with the existing architecture. It will be in 1.8.
This has been implemented in 1.8.1 which was released today.
Do you intend to provide support for mocking chunked responses similar to how Wiremock does?