MCPcopy Create free account
hub / github.com/desktop/desktop / tryUpdateEndpointVersionFromResponse

Function tryUpdateEndpointVersionFromResponse

app/src/lib/api.ts:2391–2399  ·  view source on GitHub ↗
(
  endpoint: string,
  response: Response
)

Source from the content-addressed store, hash-verified

2389}
2390
2391function tryUpdateEndpointVersionFromResponse(
2392 endpoint: string,
2393 response: Response
2394) {
2395 const gheVersion = response.headers.get('x-github-enterprise-version')
2396 if (gheVersion !== null) {
2397 updateEndpointVersion(endpoint, gheVersion)
2398 }
2399}
2400
2401const knownThirdPartyHosts = new Set([
2402 'dev.azure.com',

Callers 3

ghRequestMethod · 0.85
requestOAuthTokenFunction · 0.85
isGitHubHostFunction · 0.85

Calls 2

updateEndpointVersionFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected