cloudflare
Version:
The official TypeScript library for the Cloudflare API
36 lines • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TLS = exports.BaseTLS = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
var BaseTLS = /* @__PURE__ */ (() => {
class BaseTLS extends resource_1.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;
})();
exports.BaseTLS = BaseTLS;
class TLS extends BaseTLS {
}
exports.TLS = TLS;
//# sourceMappingURL=tls.js.map