typeduck-codex-utils-rustls-provider 0.2.0

Support package for the standalone Codex Web runtime (codex-app-server)
Documentation
1
2
3
4
5
6
7
8
pub(crate) const REMOTE_IMAGE_URL_ERROR: &str =
    "remote image URLs are not supported; use an inline data URL instead";

pub(crate) fn is_remote_image_url(image_url: &str) -> bool {
    image_url.split_once(':').is_some_and(|(scheme, _)| {
        scheme.eq_ignore_ascii_case("http") || scheme.eq_ignore_ascii_case("https")
    })
}