Skip to main content

Limitations

Server-side mocking comes with a few limitations that you should keep in mind.

  1. Static Data Only: The mock must be serializable to JSON. This means you can't provide arbitrary function-based mocks. To mitigate this restriction, RMP supports Route Parameters and Response Patching techniques.

  2. Header Size Limits: HTTP headers typically support 4KB to 8KB of data. If you need to mock larger payloads, consider Response Patching or alternative techniques.

In practice, this is usually acceptable. Mocks should focus on the minimal state the test actually needs.