File tree 5 files changed +13
-1
lines changed
5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 1508
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b9d1e410625002fb2fa27d7d00c232f2aea9c22f0141ccfbc717ed94aefb9804 .yml
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db443ead2321c518913c39aebcf830d4ad1d7d8fd95d81971fa73c87efc17df9 .yml
Original file line number Diff line number Diff line change @@ -577,9 +577,14 @@ type ScriptUpdateParamsMetadataAssetsConfig struct {
577
577
// Determines the response when a request does not match a static asset, and there
578
578
// is no Worker script.
579
579
NotFoundHandling param.Field [ScriptUpdateParamsMetadataAssetsConfigNotFoundHandling ] `json:"not_found_handling"`
580
+ // When true, requests will always invoke the Worker script. Otherwise, attempt to
581
+ // serve an asset matching the request, falling back to the Worker script.
582
+ RunWorkerFirst param.Field [bool ] `json:"run_worker_first"`
580
583
// When true and the incoming request matches an asset, that will be served instead
581
584
// of invoking the Worker script. When false, requests will always invoke the
582
585
// Worker script.
586
+ //
587
+ // Deprecated: deprecated
583
588
ServeDirectly param.Field [bool ] `json:"serve_directly"`
584
589
}
585
590
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ func TestScriptUpdateWithOptionalParams(t *testing.T) {
38
38
Config : cloudflare .F (workers.ScriptUpdateParamsMetadataAssetsConfig {
39
39
HTMLHandling : cloudflare .F (workers .ScriptUpdateParamsMetadataAssetsConfigHTMLHandlingAutoTrailingSlash ),
40
40
NotFoundHandling : cloudflare .F (workers .ScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingNone ),
41
+ RunWorkerFirst : cloudflare .F (false ),
41
42
ServeDirectly : cloudflare .F (true ),
42
43
}),
43
44
JWT : cloudflare .F ("jwt" ),
Original file line number Diff line number Diff line change @@ -374,9 +374,14 @@ type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig struct {
374
374
// Determines the response when a request does not match a static asset, and there
375
375
// is no Worker script.
376
376
NotFoundHandling param.Field [DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling ] `json:"not_found_handling"`
377
+ // When true, requests will always invoke the Worker script. Otherwise, attempt to
378
+ // serve an asset matching the request, falling back to the Worker script.
379
+ RunWorkerFirst param.Field [bool ] `json:"run_worker_first"`
377
380
// When true and the incoming request matches an asset, that will be served instead
378
381
// of invoking the Worker script. When false, requests will always invoke the
379
382
// Worker script.
383
+ //
384
+ // Deprecated: deprecated
380
385
ServeDirectly param.Field [bool ] `json:"serve_directly"`
381
386
}
382
387
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ func TestDispatchNamespaceScriptUpdateWithOptionalParams(t *testing.T) {
40
40
Config : cloudflare .F (workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig {
41
41
HTMLHandling : cloudflare .F (workers_for_platforms .DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingAutoTrailingSlash ),
42
42
NotFoundHandling : cloudflare .F (workers_for_platforms .DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingNone ),
43
+ RunWorkerFirst : cloudflare .F (false ),
43
44
ServeDirectly : cloudflare .F (true ),
44
45
}),
45
46
JWT : cloudflare .F ("jwt" ),
You can’t perform that action at this time.
0 commit comments