Fetches the HTML content for a specific CSS spec version
(client: &Client, name: &str, ver: usize)
| 154 | |
| 155 | /// Fetches the HTML content for a specific CSS spec version |
| 156 | pub async fn get_spec(client: &Client, name: &str, ver: usize) -> Result<String> { |
| 157 | let url = format!("{}/{}-{}/", CSSWG_DRAFTS_BASE_URL, name, ver); |
| 158 | let cache_name = format!("{}-{}.txt", name, ver); |
| 159 | fetch_cached(client, &url, &cache_name).await |
| 160 | } |
| 161 | |
| 162 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 163 | pub struct PopularityEntry { |
no test coverage detected