(url: string, data?: any, options: AxiosRequestConfig = {})
| 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) { |
nothing calls this directly
no test coverage detected