Search + K

Command Palette

Search for a command to run...

Sign In

Change Origin H2 Max Streams Setting

PATCH /zones/{zone_id}/settings/origin_h2_max_streams
Copy endpoint
https://api.cloudflare.com/client/v4

Origin H2 Max Streams configures the max number of concurrent requests that Cloudflare will send within the same connection when communicating with the origin server, if the origin supports it. Note that if your origin does not support H2 multiplexing, 5xx errors may be observed, particularly 520s. Also note that the default value is 100 for all plan types except Enterprise where it is 1. 1 means that H2 multiplexing is disabled.

Parameters

path Path Parameters

Name Type
zone_id required
type CacheRulesIdentifier = string

Request Body

application/json required
{ value: CacheRulesOriginH2MaxStreamsValue

Value of the Origin H2 Max Streams Setting.

type CacheRulesOriginH2MaxStreamsValue = number
; }

Responses

200 application/json

Change Origin H2 Max Streams setting response.

type CacheRulesOriginH2MaxStreamsResponseValue = interface CacheRulesApiResponseCommon {
errors: CacheRulesMessages
type CacheRulesMessages = { code: number;message: string; }[]
;
messages: CacheRulesMessages
type CacheRulesMessages = { code: number;message: string; }[]
;
success: true;
}
& { result?: CacheRulesOriginH2MaxStreams

Origin H2 Max Streams configures the max number of concurrent requests that Cloudflare will send within the same connection when communicating with the origin server, if the origin supports it. Note that if your origin does not support H2 multiplexing, 5xx errors may be observed, particularly 520s. Also note that the default value is 100 for all plan types except Enterprise where it is 1. 1 means that H2 multiplexing is disabled.

type CacheRulesOriginH2MaxStreams = never
; }

Client Errors

4XX application/json

Change Origin H2 Max Streams response failure.

interface CacheRulesApiResponseCommonFailure {
errors: never;
messages: never;
result: null;
success: false;
}