Added support for a non-blocking HTTP mode