コンテンツにスキップ

HTMLを取得

Last reviewed: 9 months ago

リモートサーバーにリクエストを送り、レスポンスからHTMLを読み取り、そのHTMLを提供します。

export default {
async fetch(request) {
/**
* Replace `remote` with the host you wish to send requests to
*/
const remote = "https://example.com";
return await fetch(remote, request);
},
};
Run Worker in Playground