Open shellphon opened 7 years ago
What a mock feature I need?
If I need mock to support both get and post,the post request body in koa may need to be parsed. And I wonder that using the parser such as bodyparser may affect problems to the proxy setting. I use koa-proxy to proxy the request, but if I parse the request of post , it may overide the proxied request body. I should take a look at the source code of koa, then enhance this feature.
Add mock api for simple frontend use