UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

19 lines 698 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class ManagedHeaders extends APIResource { /** * Fetches a list of all Managed Transforms. */ list(params, options) { const { zone_id } = params; return this._client.get(`/zones/${zone_id}/managed_headers`, options); } /** * Updates the status of one or more Managed Transforms. */ edit(params, options) { const { zone_id, ...body } = params; return this._client.patch(`/zones/${zone_id}/managed_headers`, { body, ...options }); } } //# sourceMappingURL=managed-headers.mjs.map