()
| 34 | } |
| 35 | |
| 36 | get headers() { |
| 37 | const headers: Headers = { |
| 38 | 'Content-Type': 'application/json', |
| 39 | } |
| 40 | |
| 41 | if (this.viewerId && this.sessionId) { |
| 42 | const secret = basicAuthSecret(this.viewerId, this.sessionId) |
| 43 | headers.Authorization = `Basic ${secret}` |
| 44 | } |
| 45 | |
| 46 | return headers |
| 47 | } |
| 48 | |
| 49 | clear() { |
| 50 | this.payloads = {} |
nothing calls this directly
no test coverage detected