MCPcopy
hub / github.com/github/docs / head

Function head

tests/helpers/e2etest.js:52–55  ·  view source on GitHub ↗
(route, opts = { followRedirects: false })

Source from the content-addressed store, hash-verified

50}
51
52export async function head(route, opts = { followRedirects: false }) {
53 const res = await get(route, { method: 'head', followRedirects: opts.followRedirects })
54 return res
55}
56
57export function post(route, opts) {
58 return get(route, Object.assign({}, opts, { method: 'post' }))

Callers 4

redirects.jsFile · 0.90
dynamic-assets.jsFile · 0.90
server.jsFile · 0.90

Calls 1

getFunction · 0.85

Tested by

no test coverage detected