Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
speekha committed Jun 10, 2021
1 parent 7d2a7d6 commit 897b418
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ If your mocker is `disabled`, it will not interfere with actual network calls. I
it will need to find scenarios to mock the HTTP calls. Dynamic mocks imply that you have to
provide the response for each request programmatically, which allows you to define stateful
responses (identical calls could lead to different answers based on what the user did in between
these calls). The response can be provided as a `ResponseDescriptor` by implementing the
`RequestCallback` interface, or you can simply provide a lambda function to do the computation.
these calls, or on any other external parameter you want to use: time, location...). The response
can be provided as a `ResponseDescriptor` by implementing the `RequestCallback` interface, or you
can simply provide a lambda function to do the computation.

*NB: If you use dynamic mocks, the `bodyFile` attribute of your `ResponseDescriptor` is not needed (it
will be ignored). Its only use is for static scenarios that could save the response body in a separate
Expand Down

0 comments on commit 897b418

Please sign in to comment.