Move http library specific code to wrapper classes