Skip to content

Mock server

The mock server answers requests with the examples you saved, from your own computer.

Save as example, on the response panel, stores a response in the request’s Examples tab. An example can hold a body up to 2 MB, and a request can hold 50 examples. You can edit examples, and they travel with import, export and team sync.

The Mock server button in the collection header starts an HTTP server on 127.0.0.1. Choose a port from 1024 to 65535, or let Codestamp pick one. Codestamp rejects ports below 1024. The server limits request size, time and the number of connections.

Only your own device can reach it. A request log appears in the panel.

Codestamp matches by method and path. A :id or a {{variable}} in a saved path acts as a wildcard.

Two headers pick a specific example:

  • x-mock-response-name
  • x-mock-response-code

SOAP mock services are not supported yet.