Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 802 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 802 Bytes

HAR Mock Server

HAR mock server provides the ability to mock API requests using HAR files. This can be useful for testing or reproduction of reported bugs where a HAR file has been captured in the browser.

https://developers.google.com/web/tools/chrome-devtools/network/reference#save-as-har

Installation

dotnet tool install -g mcmham.harmockserver

Usage

Update your client app to use HarMockServer as the server app by updating URL to be http://localhost:5000 (you can change this by specifying --urls http://localhost:8000). Then run the following command in the directory where the HAR files live (or by specifying folder via --har-folder path/to/files) specifying the real server app url.

harmockserver --api-url https://api.server.com