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

Method headers

wxapp/gyjj.js:147–155  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

145 }
146
147 headers(extra = {}) {
148 return {
149 "content-Type": "application/json",
150 Authorization: `Mer${this.token}`,
151 "User-Agent": defaultUserAgent,
152 Referer: `https://servicewechat.com/${MINI_APP_ID}/${PAGE_VERSION}/page-frame.html`,
153 ...extra,
154 };
155 }
156
157 async request(pathname, { method = "GET", data, params, auth = true, headers = {} } = {}) {
158 const options = {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected