Simple recording events that can be used in tests
Convert a synchronous HttpHandler API to mimic AsyncHttpClient