echo.js
Echo raw http request, for test usage.
Example of using echo.js to test HTTP client
Assuming we have the following HTTP client:
const superagent = ; { return superagent;} { return superagent ;} moduleexports = getPizzas postPizza;
We can write something like the following to test how we expect this client's requests to look like:
const assert = assert;const client = ;const createServer = ; const server = ;const port = 8061; server;
The same example can be found in this repo's test
directory.