Skip to main content

smart_request

Function smart_request 

Source
pub async fn smart_request(
    method: Method,
    url: &str,
    headers: Option<HeaderMap>,
    body: Option<Vec<u8>>,
) -> Result<Response, String>
Expand description

Generic request with DoH fallback. Tries normal DNS first, falls back to DoH for *.supabase.co on failure.