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

Method get

src/session.ts:96–103  ·  view source on GitHub ↗
(url: string, options: AxiosRequestConfig = {})

Source from the content-addressed store, hash-verified

94 }
95
96 async get(url: string, options: AxiosRequestConfig = {}): Promise<SessionResponseInterface> {
97 return this.makeSessionResponse(await (await Session.importAxios())(url, {
98 headers: {
99 Cookie: (await this.getCookies()).get().join("; ")
100 },
101 ...options
102 }))
103 }
104
105 async post(url: string, data?: any, options: AxiosRequestConfig = {}): Promise<SessionResponseInterface> {
106 return this.makeSessionResponse(await (await Session.importAxios()).post(url, data, {

Callers

nothing calls this directly

Calls 4

makeSessionResponseMethod · 0.95
getCookiesMethod · 0.95
importAxiosMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected