simplify interface of `http::client`