You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: proxy.rs
    path of file: ./repos/iptv-handler/src/api/src/services
    
    the code of the file until where you have to start completion: use std::sync::Arc;

use anyhow::{Context, Error};
use db::{CRUD, DB};
use reqwest::{Method, Url};
use rest_client::RestClient;
use warp::{
    http::HeaderMap,
    hyper::{Body, Response},
};

use crate::{
    models::Path,
    utils::{response::ResponseUtil, url::UrlUtil},
};

#[derive(Clone)]
pub struct ProxyService {
    response_util: ResponseUtil,
    url_util: UrlUtil,
    db: Arc<DB>,
    cli
    
    pub async fn proxy_hls(&self, path: Path, headers: HeaderMap) -> Result<Response<Body>, Error> {
        let mut tx = self.db.pool.begin().await?;

        let host = self.db.hls_url.get_latest(&mut tx).await?;

        tx.commit().await?;

        let url = Url::parse(&format!(
            "{}/hls/{}/{}",
            host.url,
            path.segment1.unwrap(),
            path.id
        ))?;

        let res = self.client.request(Method::GET, url, headers).await?;

        let builder = self.response_util.compose_base_response(&res).await?;

        let res = self
            .response_util
            .compose_proxy_stream_response(res, builder)
            .await
            .context("error proxying stream")?;

        return Ok(res);
    }