UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

66 lines 2.65 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as ResponseBufferingAPI from 'cloudflare/resources/zones/settings/response-buffering'; export declare class ResponseBuffering extends APIResource { /** * Enables or disables buffering of responses from the proxied server. Cloudflare * may buffer the whole payload to deliver it at once to the client versus allowing * it to be delivered in chunks. By default, the proxied server streams directly * and is not buffered by Cloudflare. This is limited to Enterprise Zones. */ edit(params: ResponseBufferingEditParams, options?: Core.RequestOptions): Core.APIPromise<ZoneSettingBuffering>; /** * Enables or disables buffering of responses from the proxied server. Cloudflare * may buffer the whole payload to deliver it at once to the client versus allowing * it to be delivered in chunks. By default, the proxied server streams directly * and is not buffered by Cloudflare. This is limited to Enterprise Zones. */ get(params: ResponseBufferingGetParams, options?: Core.RequestOptions): Core.APIPromise<ZoneSettingBuffering>; } /** * Enables or disables buffering of responses from the proxied server. Cloudflare * may buffer the whole payload to deliver it at once to the client versus allowing * it to be delivered in chunks. By default, the proxied server streams directly * and is not buffered by Cloudflare. This is limited to Enterprise Zones. */ export interface ZoneSettingBuffering { /** * ID of the zone setting. */ id: 'response_buffering'; /** * Current value of the zone setting. */ value: 'on' | 'off'; /** * Whether or not this setting can be modified for this zone (based on your * Cloudflare plan level). */ editable?: true | false; /** * last time this setting was modified. */ modified_on?: string | null; } export interface ResponseBufferingEditParams { /** * Path param: Identifier */ zone_id: string; /** * Body param: Value of the zone setting. */ value: 'on' | 'off'; } export interface ResponseBufferingGetParams { /** * Identifier */ zone_id: string; } export declare namespace ResponseBuffering { export import ZoneSettingBuffering = ResponseBufferingAPI.ZoneSettingBuffering; export import ResponseBufferingEditParams = ResponseBufferingAPI.ResponseBufferingEditParams; export import ResponseBufferingGetParams = ResponseBufferingAPI.ResponseBufferingGetParams; } //# sourceMappingURL=response-buffering.d.ts.map