Refactor AlHttp class