Allows init callback to create http connection