v0.3.0 — web_headers: inspect HTTP without the body
New tool: web_headers
Inspect the HTTP status, response headers and redirect chain of a URL
without downloading the page body — the diagnostic companion to
web_fetch:
url(required) — full http/https URL to inspectmethod—HEAD(default, downloads no body) orGET; falls back to
GETautomatically when the server answers 405/501followRedirects(defaulttrue) — follow redirects and report every hop
Returns { url, finalUrl, status, statusText, method, headers, redirects }.
Unlike web_fetch, any HTTP status (404/500/…) is reported — this is a
diagnostic tool. Works through the same zero-dependency proxy transport as
the other tools (proxy support extended with a request-method parameter).
Example: check a download link and its redirect chain, or verify an
endpoint's content-type/caching/security headers before fetching.
Also: README (EN/ZH) updated for the fourth tool, 97 tests all green
(12 new: HEAD probe, GET fallback, redirect chains/limits, non-2xx
reporting, timeout, and HEAD through a local proxy fixture).
Install:
dsh plugin --profile web add github:TYEclipse/dsh-webfetch#v0.3.0中文摘要
v0.3.0 新增 web_headers 工具:用 HEAD 请求探测任意 URL 的 HTTP 状态码、响应头与重定向链,不下载正文(服务器不支持 HEAD 时自动回退 GET,非 2xx 状态照常报告),是 web_fetch 的读前诊断搭档。代理传输层同步支持自定义请求方法;README 中英双语已更新;97 个测试全绿(新增 12 个:HEAD 探测/GET 回退/重定向链与上限/非 2xx 报告/超时/经代理 HEAD)。