File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ A simple HTTP server that can be used to mock HTTP responses for testing purpose
11
11
12
12
# Features
13
13
* All the features of [ httpbin] ( https://httpbin.org/ )
14
- * CORS and Helmet support
15
- * Built with ` nodejs ` and ` fastify `
14
+ * ` @fastify/helmet ` built in by default
15
+ * Built with ` nodejs ` , ` typescript ` , and ` fastify `
16
16
* Deploy via ` docker ` or ` nodejs `
17
17
* Global deployment via [ mockhttp.org] ( https://mockhttp.org ) (free service)
18
18
* Better API documentation and examples
@@ -33,7 +33,7 @@ then run `mockhttp` in your code.
33
33
``` javascript
34
34
import { mockhttp } from ' @jaredwray/mockhttp' ;
35
35
await mockhttp .start (); // start the server
36
- const response = await fetch (' http://localhost:8080/ip ' );
36
+ const response = await fetch (' http://localhost:3000/get ' );
37
37
await mockhttp .stop (); // stop the server
38
38
```
39
39
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @jaredwray/mockhttp" ,
3
- "version" : " 0.3 .0" ,
3
+ "version" : " 0.4 .0" ,
4
4
"description" : " Mock Http - Easy way to mock http with httpbin replacement" ,
5
5
"type" : " module" ,
6
6
"main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments