Echo http requests

Echo is a tool for testing how your applications handle http and websocket responses. It allows you to define a http response in the request its self.



Javascript example

A minimal javascript example.

  var socket = new WebSocket("ws://");

  socket.addEventListener("message", function(e) {
    var message =;
    console.log("got `" + message + "`");



Echo takes the following params, either as json, or url encoded query string.

Echo will respond to the following http verbs:

CORS headers are set for you.

Curl example

A post request with json body and json response:

curl -v -X POST \
  -H "Content-Type: application/json" \
  -d '{"body": "{\"teapot\": true}", "status": 418, "headers": {"Content-Type": "application/json"}}'