expand_url library
Classes
- RedirectStep
- 重定向步骤信息
- ResolveResult
- 单次请求解析结果
Functions
-
expandSingleUrl(
String url, {int timeoutMs = 15000, void onStep(RedirectStep step)?}) → Future< String> - 展开单个 URL
-
followRedirects(
String initialUrl, int timeoutMs, {void onStep(RedirectStep step)?}) → Future< String> - 跟随重定向链,展开短链接
-
isHttpLike(
String url) → bool - 检查 URL 是否为 HTTP/HTTPS 协议
-
resolveOnce(
String method, String currentUrl, int timeoutMs) → Future< ResolveResult> - 执行一次 HTTP 请求(HEAD 或 GET)