Add support for HTTP event

This is working but factorization of the code should not wait
and be the next thing to do.