cloudflare
Version:
The official TypeScript library for the Cloudflare API
31 lines • 1.12 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
export var BaseTLS = /* @__PURE__ */ (() => {
class BaseTLS extends APIResource {
/**
* Tests whether a hostname or IP address supports Post-Quantum (PQ) TLS key
* exchange. Returns information about the negotiated key exchange algorithm,
* whether it uses PQ cryptography, and any detected TLS implementation bugs (Split
* ClientHello, HRR failure, etc.).
*
* @example
* ```ts
* const response = await client.radar.postQuantum.tls.support(
* { host: 'cloudflare.com' },
* );
* ```
*/
support(query, options) {
return this._client.get('/radar/post_quantum/tls/support', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseTLS._key = Object.freeze([
'radar',
'postQuantum',
'tls',
]);
return BaseTLS;
})();
export class TLS extends BaseTLS {
}
//# sourceMappingURL=tls.mjs.map