MCPcopy Create free account
hub / github.com/Tatamo/atcoder-cli / getCookies

Method getCookies

src/session.ts:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 async getCookies(): Promise<CookieInterface> {
86 if (this._currentTransaction !== null) {
87 // if this is inside a transaction, use the temporal cookie.
88 return this._currentTransaction.cookies;
89 }
90 if (this._cookies === null) {
91 return this._cookies = await this.CookieConstructor.createLoadedInstance();
92 }
93 return this._cookies;
94 }
95
96 async get(url: string, options: AxiosRequestConfig = {}): Promise<SessionResponseInterface> {
97 return this.makeSessionResponse(await (await Session.importAxios())(url, {

Callers 7

getMethod · 0.95
postMethod · 0.95
transactionMethod · 0.95
removeSessionMethod · 0.95
saveCookieMethod · 0.95
session.tsFile · 0.80

Calls 1

createLoadedInstanceMethod · 0.65

Tested by

no test coverage detected