MCPcopy Create free account
hub / github.com/MuYunyun/create-react-doc / getHeaders

Function getHeaders

packages/leetcode-cli/src/utils.js:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19request.post = promisify(request.post)
20
21const getHeaders = session => ({
22 'Content-Type': 'application/json',
23 'x-csrftoken': session.csrftoken,
24 cookie: `LEETCODE_SESSION=${session.LEETCODE_SESSION};csrftoken=${session.csrftoken};`,
25})
26
27const unicodeToChar = text =>
28 text.replace(/\\u[\dA-F]{4}/gi, match =>

Callers 1

createGqlRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected