docs: 联网搜索服务架构方案全套(plan-final/design-arch/选型决策/整合导览/MCP文档/部署预设/联调手册) bench: 5 方案 + 代理 + 站点矩阵本机实测工程(无密钥) 部署目标:primary mgr1 先行测试(待批准后执行)
57 lines
2.5 KiB
JSON
57 lines
2.5 KiB
JSON
{
|
|
"id": 5,
|
|
"slug": "mdn",
|
|
"group": "foreign",
|
|
"channel": "trafilatura-http",
|
|
"start_url": "https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API",
|
|
"used_url": "https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API",
|
|
"discovered_url": null,
|
|
"http_status": 200,
|
|
"final_url": "https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API",
|
|
"title": "Fetch API",
|
|
"title_ok": true,
|
|
"text_len": 2491,
|
|
"html_len": 153146,
|
|
"extractable": true,
|
|
"intercept": "none",
|
|
"elapsed_s": 1.937,
|
|
"redirect_chain": [],
|
|
"error": null,
|
|
"header_keys": [
|
|
"Accept-Ranges",
|
|
"Age",
|
|
"Connection",
|
|
"Content-Encoding",
|
|
"Content-Length",
|
|
"Date",
|
|
"Vary",
|
|
"X-Cache",
|
|
"X-Cache-Hits",
|
|
"X-Served-By",
|
|
"X-Timer",
|
|
"cache-control",
|
|
"content-security-policy",
|
|
"content-type",
|
|
"etag",
|
|
"expires",
|
|
"last-modified",
|
|
"referrer-policy",
|
|
"server",
|
|
"strict-transport-security",
|
|
"via",
|
|
"x-cloud-trace-context",
|
|
"x-content-type-options",
|
|
"x-frame-options",
|
|
"x-goog-generation",
|
|
"x-goog-hash",
|
|
"x-goog-meta-goog-reserved-file-mtime",
|
|
"x-goog-metageneration",
|
|
"x-goog-storage-class",
|
|
"x-goog-stored-content-encoding",
|
|
"x-goog-stored-content-length",
|
|
"x-guploader-uploadid"
|
|
],
|
|
"text_head": "# Fetch API\n\nThe Fetch API provides an interface for fetching resources (including across the network). It is a more powerful and flexible replacement for `XMLHttpRequest`.\n\nThe Fetch API uses `Request` and `Response` objects (and other things involved with network requests), as well as related concepts such as CORS and the HTTP Origin header semantics.\n\nFor making a request and fetching a resource, use the `fetch()` method. It is a global method in both `Window` and `Worker` contexts. This makes it available in pretty much any context you might want to fetch resources in.\n\nThe `fetch()` method takes one mandatory argument, the path to the resource you want to fetch. It returns a `Promise` that resolves to the `Response` to that request — as soon as the server responds with headers — **even if the server response is an HTTP error status**. You can also optionally pass in an `init` options object as the second argument (see `Request`).\n\nOnce a `Response` is retrieved, there are a number of methods available to define what the body content is and how it should be handled.\n\nYou can create a request and response directly using the `Request()` and `Response()` constructors, but it's unc",
|
|
"scenario": "技术文档",
|
|
"known_risk": null
|
|
}
|