gstroup / apimocker

node.js module to run a simple http server for mock service responses.
MIT License
280 stars 81 forks source link

How to mock form-data requests? #111

Open toutouli opened 5 years ago

toutouli commented 5 years ago

I want to verify the form-data in the request,but the request body is empty,is there any way to support form-data requests?

gstroup commented 5 years ago

Can you share a sample request? (URL, headers, body)

Do you want to return different responses based on the data in the request body? You could possibly use a regex switch to do that.