MCPcopy Create free account
hub / github.com/chokcoco/iCSS / getHeaders

Method getHeaders

website/app/lib/github.ts:47–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 // 构建请求头
47 private static getHeaders(): HeadersInit {
48 const headers: HeadersInit = {
49 'Accept': 'application/vnd.github.v3+json',
50 'User-Agent': 'iCSS-Website'
51 };
52
53 const token = this.getGitHubToken();
54 if (token) {
55 headers['Authorization'] = `token ${token}`;
56 }
57
58 return headers;
59 }
60
61 // 从 issue 内容中提取图片
62 private static extractImageFromBody(body: string): string | undefined {

Callers 2

getIssuesMethod · 0.95
getIssueMethod · 0.95

Calls 1

getGitHubTokenMethod · 0.95

Tested by

no test coverage detected