kodik_utils/lib.rs
1mod client_ext;
2mod error;
3mod jar_ext;
4mod re;
5
6pub use client_ext::ClientExt;
7pub use error::{Error, Result};
8pub use jar_ext::JarExt;
9pub use re::{extract_anime_id, extract_domain};
10pub use reqwest::{Client, cookie::Jar};
11
12/// Builds a URL from a host and path (path should start with `/`).
13#[must_use]
14pub fn api_url(host: &str, path: &str) -> String {
15 format!("https://{host}{path}")
16}