support custom creatConnection on http/httpps request