UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

31 lines • 977 B
// 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 BaseOS = /* @__PURE__ */ (() => { class BaseOS extends APIResource { /** * Retrieves the top locations, by HTTP requests, of the requested operating * system. * * @example * ```ts * const os = await client.radar.http.locations.os.get( * 'WINDOWS', * ); * ``` */ get(os, query = {}, options) { return this._client.get(path `/radar/http/top/locations/os/${os}`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseOS._key = Object.freeze([ 'radar', 'http', 'locations', 'os', ]); return BaseOS; })(); export class OS extends BaseOS { } //# sourceMappingURL=os.mjs.map