Installation

2024-9-7 Less than 1 minute

You can use http-request-mock to speed up your development and testing.

NPM:

npm install --save-dev http-request-mock

// using ES6 modules
import HttpRequestMock from 'http-request-mock';

// using CommonJS modules
const HttpRequestMock = require('http-request-mock');

CDN:

The UMD build is also available on unpkg:

<!-- unpkg -->
<script src="https://unpkg.com/http-request-mock/http-request-mock.js"></script>

You can find the library on window.HttpRequestMock.

Last update: September 7, 2024 15:58