UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

35 lines • 1.15 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import { path } from "../../../../internal/utils/path.mjs"; export var BaseTLSVersion = /* @__PURE__ */ (() => { class BaseTLSVersion extends APIResource { /** * Retrieves the top locations, by HTTP requests, of the requested TLS protocol * version. * * @example * ```ts * const tlsVersion = * await client.radar.http.locations.tlsVersion.get( * 'TLSv1_0', * ); * ``` */ get(tlsVersion, query = {}, options) { return this._client.get(path `/radar/http/top/locations/tls_version/${tlsVersion}`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseTLSVersion._key = Object.freeze([ 'radar', 'http', 'locations', 'tlsVersion', ]); return BaseTLSVersion; })(); export class TLSVersion extends BaseTLSVersion { } //# sourceMappingURL=tls-version.mjs.map