Delay

Use delay attribute in milliseconds to simulate network latency.

For example, create a manifest as follows:

version: v1.3
type: Stub
rules:
  - request:
      path: /users
      method: POST
    response:
      delay: 500
      headers:
        content-type: application/json
      body:
        id: 1

Send the request POST /users and the stub will return a response after 500 ms.

Last updated