You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As can be read here, it is possible to delay the response with an x amount of milliseconds before returning it, to simulate a slow connection. It would be nice to also provide a min and a max number of milliseconds. This way, HttPlaceholder will pick a random number in between these 2 numbers. HttPlaceholder will wait this amount of milliseconds longer before returning the response.
Describe Preferred Solution
Here is an example of how this might look like:
- id: slowconditions:
method: GETurl:
path:
equals: /slooooowresponse:
text: This was very slow.extraDuration:
min: 20000max: 40000
Make sure to:
update the OpenAPI definition of the extraDuration.
update the stub validator so min can not be larger than / equal to max.
Describe Alternatives
Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered:
Feature Request
Describe the Feature Request
As can be read here, it is possible to delay the response with an x amount of milliseconds before returning it, to simulate a slow connection. It would be nice to also provide a min and a max number of milliseconds. This way, HttPlaceholder will pick a random number in between these 2 numbers. HttPlaceholder will wait this amount of milliseconds longer before returning the response.
Describe Preferred Solution
Here is an example of how this might look like:
Make sure to:
extraDuration
.min
can not be larger than / equal tomax
.Describe Alternatives
Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered: