MCPcopy Index your code
hub / github.com/github/docs / getAcceptHeader

Function getAcceptHeader

components/lib/get-rest-code-samples.ts:269–274  ·  view source on GitHub ↗
(codeSample: CodeSample)

Source from the content-addressed store, hash-verified

267}
268
269function getAcceptHeader(codeSample: CodeSample) {
270 // This allows us to display custom media types like application/sarif+json
271 return codeSample?.response?.contentType?.includes('+json')
272 ? codeSample.response.contentType
273 : 'application/vnd.github+json'
274}

Callers 2

getShellExampleFunction · 0.85
getGHExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected