pub async fn raw_file(self, reference: impl Into<params::repos::Commitish>, path: impl AsRef<str>) -> Result<reqwest::Response> {
        let url = self.crab.absolute_url(format!(
            "repos/{owner}/{repo}/contents/{path}",
            owner = self.owner,
            repo = self.repo,
            path = path.as_ref(),
        ))?;
        let mut request = self.crab.request_builder(url, reqwest::Method::GET);
        request = request.query(&[("ref", &reference.into().0)]);
        request = request.header(ACCEPT, "application/vnd.github.v3.raw");
        self.crab.execute(request).await
    }
/// Retrieve the contents of a file in raw format
Retrieve the contents of a file in raw format
Retrieve the contents of a file in raw format
pub async fn raw_file(self, reference: impl Into<params::repos::Commitish>, path: impl AsRef<str>) -> Result<reqwest::Response> {
        let url = self.crab.absolute_url(format!(
            "repos/{owner}/{repo}/contents/{path}",
            owner = self.owner,
            repo = self.repo,
            path = path.as_ref(),
        ))?;
        let mut request = self.crab.request_builder(url, reqwest::Method::GET);
        request = request.query(&[("ref", &reference.into().0)]);
        request = request.header(ACCEPT, "application/vnd.github.v3.raw");
        self.crab.execute(request).await
    }
pub async fn raw_file ( self , reference : impl Into < params :: repos :: Commitish > , path : impl AsRef < str > ) -> Result < reqwest :: Response > { let url = self . crab . absolute_url ( format ! ( " " owner self owner repo self repo path path as_ref ( ) ) ) ? ; let mut request = self . crab . request_builder ( url , reqwest :: Method :: GET ) ; request = request . query ( & [ ( " " , & reference . into ( ) . 0 ) ] ) ; request = request . header ( ACCEPT , " " ) ; self . crab . execute ( request ) . await }
Retrieve the contents of a file in raw format
Retrieve the contents of a file in raw format
self
reference
impl Into<params::repos::Commitish>
path
impl AsRef<str>
self
reference
impl Into<params::repos::Commitish>
path
impl AsRef<str>