Skip to content

feat: Support fetch requests#1426

Open
mo2g wants to merge 1 commit into
Huachao:masterfrom
mo2g:feat/support_fetch
Open

feat: Support fetch requests#1426
mo2g wants to merge 1 commit into
Huachao:masterfrom
mo2g:feat/support_fetch

Conversation

@mo2g

@mo2g mo2g commented Mar 16, 2026

Copy link
Copy Markdown

Introduce FetchRequestParser to enable parsing of fetch() API calls into HTTP requests.

###
fetch("https://httpbin.org/get", {
  "headers": {
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "accept-language": "zh-CN,zh;q=0.9,zh-TW;q=0.8",
    "cache-control": "max-age=0",
    "priority": "u=0, i",
    "sec-ch-ua": "\"Not:A-Brand\";v=\"99\", \"Google Chrome\";v=\"145\", \"Chromium\";v=\"145\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"macOS\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "none",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1"
  },
  "body": null,
  "method": "GET",
  "mode": "cors",
  "credentials": "omit"
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant