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

Method post

src/session.ts:105–112  ·  view source on GitHub ↗
(url: string, data?: any, options: AxiosRequestConfig = {})

Source from the content-addressed store, hash-verified

103 }
104
105 async post(url: string, data?: any, options: AxiosRequestConfig = {}): Promise<SessionResponseInterface> {
106 return this.makeSessionResponse(await (await Session.importAxios()).post(url, data, {
107 headers: {
108 Cookie: (await this.getCookies()).get().join("; ")
109 },
110 ...options
111 }))
112 }
113
114 async transaction<R>(callback: () => Promise<R>): Promise<R> {
115 if (this._currentTransaction !== null) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected