Skip to content

Commit

Permalink
Correct mock evaluation order in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliesenfeld committed Nov 13, 2024
1 parent 234df73 commit 89a091c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/website/src/content/docs/miscellaneous/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Yes, you can start multiple mock servers. However, `httpmock` uses a server pool
servers. You can adjust this limit by setting the `HTTPMOCK_MAX_SERVERS` environment variable.

### In which order are mocks evaluated?
When the `httpmock` server receives a request that matches multiple mocks, they are evaluated in
reverse order of their definition. This means the most recently defined mock takes precedence and will be used.
When the `httpmock` server receives a request that matches multiple mocks, they are evaluated in the order
of their definition. This means the first defined mock takes precedence and will be used.

### How does Proxy Mode work?

Expand Down

0 comments on commit 89a091c

Please sign in to comment.