(directoryUrl, accountKey, externalAccountBinding = {})
| 25 | |
| 26 | class HttpClient { |
| 27 | constructor(directoryUrl, accountKey, externalAccountBinding = {}) { |
| 28 | this.directoryUrl = directoryUrl; |
| 29 | this.accountKey = accountKey; |
| 30 | this.externalAccountBinding = externalAccountBinding; |
| 31 | |
| 32 | this.maxBadNonceRetries = 5; |
| 33 | this.jwk = null; |
| 34 | |
| 35 | this.directoryCache = null; |
| 36 | this.directoryMaxAge = 86400; |
| 37 | this.directoryTimestamp = 0; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * HTTP request |
nothing calls this directly
no outgoing calls
no test coverage detected