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

Method makeSessionResponse

src/session.ts:136–147  ·  view source on GitHub ↗
({status, data, headers}: AxiosResponse)

Source from the content-addressed store, hash-verified

134 }
135
136 private makeSessionResponse({status, data, headers}: AxiosResponse): SessionResponseInterface {
137 const saveSession = async ()=>{
138 const new_cookies = this.CookieConstructor.convertSetCookies2CookieArray(headers["set-cookie"]);
139 await this.saveSessionFromCookies(new_cookies);
140 }
141 return {
142 status,
143 data,
144 headers,
145 saveSession
146 }
147 }
148
149 private async saveSessionFromCookies(cookies: Array<string>): Promise<void> {
150 const session_cookies = await this.getCookies();

Callers 2

getMethod · 0.95
postMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected