UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

90 lines 3.74 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as OriginMaxHTTPVersionAPI from 'cloudflare/resources/zones/settings/origin-max-http-version'; export declare class OriginMaxHTTPVersion extends APIResource { /** * Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will * attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 * requests to your origin. (Refer to * [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), * for more information.). The default value is "2" for all plan types except ENT * where it is "1" */ edit(params: OriginMaxHTTPVersionEditParams, options?: Core.RequestOptions): Core.APIPromise<OriginMaxHTTPVersionEditResponse>; /** * Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will * attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 * requests to your origin. (Refer to * [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), * for more information.). The default value is "2" for all plan types except ENT * where it is "1" */ get(params: OriginMaxHTTPVersionGetParams, options?: Core.RequestOptions): Core.APIPromise<OriginMaxHTTPVersionGetResponse>; } /** * Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will * attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 * requests to your origin. (Refer to * [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), * for more information.). The default value is "2" for all plan types except ENT * where it is "1" */ export interface OriginMaxHTTPVersionEditResponse { /** * Value of the zone setting. */ id: 'origin_max_http_version'; /** * last time this setting was modified. */ modified_on: string | null; /** * Value of the Origin Max HTTP Version Setting. */ value: '2' | '1'; } /** * Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will * attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 * requests to your origin. (Refer to * [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), * for more information.). The default value is "2" for all plan types except ENT * where it is "1" */ export interface OriginMaxHTTPVersionGetResponse { /** * Value of the zone setting. */ id: 'origin_max_http_version'; /** * last time this setting was modified. */ modified_on: string | null; /** * Value of the Origin Max HTTP Version Setting. */ value: '2' | '1'; } export interface OriginMaxHTTPVersionEditParams { /** * Path param: Identifier */ zone_id: string; /** * Body param: Value of the Origin Max HTTP Version Setting. */ value: '2' | '1'; } export interface OriginMaxHTTPVersionGetParams { /** * Identifier */ zone_id: string; } export declare namespace OriginMaxHTTPVersion { export import OriginMaxHTTPVersionEditResponse = OriginMaxHTTPVersionAPI.OriginMaxHTTPVersionEditResponse; export import OriginMaxHTTPVersionGetResponse = OriginMaxHTTPVersionAPI.OriginMaxHTTPVersionGetResponse; export import OriginMaxHTTPVersionEditParams = OriginMaxHTTPVersionAPI.OriginMaxHTTPVersionEditParams; export import OriginMaxHTTPVersionGetParams = OriginMaxHTTPVersionAPI.OriginMaxHTTPVersionGetParams; } //# sourceMappingURL=origin-max-http-version.d.ts.map