http: implement init/pause/resume