Get verdict for URL * @throws {VaasInvalidStateError} If connect() has not been called and awaited. Signifies caller error. * @throws {VaasAuthenticationError} Authentication failed. * @throws {VaasConnectionClosedError} Connection was closed. Call connect() to reconnect. * @throws {Vaas
(
url: URL,
ct: CancellationToken = CancellationToken.fromMilliseconds(
this.defaultTimeoutUrlReq,
),
)
| 100 | * @throws {VaasTimeoutError} Timeout. Retry request. |
| 101 | */ |
| 102 | public async forUrl( |
| 103 | url: URL, |
| 104 | ct: CancellationToken = CancellationToken.fromMilliseconds( |
| 105 | this.defaultTimeoutUrlReq, |
| 106 | ), |
| 107 | ): Promise<VaasVerdict> { |
| 108 | const request = this.forUrlRequest(url).then((response) => response); |
| 109 | return timeout(request, ct.timeout()); |
| 110 | } |
| 111 | |
| 112 | /** Get verdict for a SHA256 |
| 113 | * @throws {VaasInvalidStateError} If connect() has not been called and awaited. Signifies caller error. |
no test coverage detected