MCPcopy Create free account
hub / github.com/github/docs / getPage

Function getPage

script/i18n/test-html-pages.js:82–91  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

80}
81
82async function getPage(page) {
83 try {
84 const response = await got.get(page.url, { throwHttpErrors: false })
85 if (response.statusCode !== 200) {
86 console.log('Status Code:', response.statusCode, 'Page: ', page.url)
87 }
88 } catch (err) {
89 console.error(err)
90 }
91}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected