hitspec can generate a mock HTTP server from your .http files. The mock server uses request definitions and assertions to create realistic responses.
Define Endpoints
Start the Mock Server
The mock server:
- Parses your
.http files to extract routes
- Generates responses from assertions and explicit mock blocks
- Supports path parameters (
/users/{{id}})
With Delay
Simulate network latency:
From a Directory
Flags
Use Cases
- Frontend development — mock the API while the backend is in progress
- Integration testing — replace external services with mocks
- Demos — show API behavior without a running backend
- Offline development — work without network access
Last modified on February 10, 2026