()
| 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, { |
no test coverage detected