MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getHeaders

Method getHeaders

wxapp/bluedash.js:120–129  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

118 }
119
120 getHeaders(extra = {}) {
121 const headers = {
122 "User-Agent": USER_AGENT,
123 "Referer": `https://servicewechat.com/${MINI_APP_ID}/39/page-frame.html`,
124 "Accept": "application/json, text/plain, */*",
125 ...extra,
126 };
127 if (this.authorization) headers.Authorization = this.authorization;
128 return headers;
129 }
130
131 async request({ method = "GET", apiPath, params = {}, data = {}, skipToken = false }) {
132 const options = {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected