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

Method getHeaders

wxapp/wugenvboshi.js:143–151  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

141 }
142
143 getHeaders(extra = {}) {
144 return {
145 "User-Agent": USER_AGENT,
146 "Referer": `https://servicewechat.com/${MINI_APP_ID}/142/page-frame.html`,
147 "Extra-Data": this.buildExtraData(),
148 "Accept": "application/json, text/plain, */*",
149 ...extra,
150 };
151 }
152
153 async request({ method = "GET", apiPath, query = {}, data = {}, skipToken = false }) {
154 const oldToken = this.token;

Callers 1

requestMethod · 0.95

Calls 1

buildExtraDataMethod · 0.95

Tested by

no test coverage detected