File tree 5 files changed +11
-1
lines changed
5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 1448
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58466f8887cb79ea28006b477268bfeceb49aca0ef6b5907ebd6a779543da4ae .yml
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c6de93f8f17d32aab783331839a3d62613deee459b821a7a76cb0f4e73a038ce .yml
Original file line number Diff line number Diff line change @@ -457,6 +457,10 @@ type ScriptUpdateParamsBodyObjectMetadataAssetsConfig struct {
457
457
// Determines the response when a request does not match a static asset, and there
458
458
// is no Worker script.
459
459
NotFoundHandling param.Field [ScriptUpdateParamsBodyObjectMetadataAssetsConfigNotFoundHandling ] `json:"not_found_handling"`
460
+ // When true and the incoming request matches an asset, that will be served instead
461
+ // of invoking the Worker script. When false, requests will always invoke the
462
+ // Worker script.
463
+ ServeDirectly param.Field [bool ] `json:"serve_directly"`
460
464
}
461
465
462
466
func (r ScriptUpdateParamsBodyObjectMetadataAssetsConfig ) MarshalJSON () (data []byte , err error ) {
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ func TestScriptUpdateWithOptionalParams(t *testing.T) {
44
44
Config : cloudflare .F (workers.ScriptUpdateParamsBodyObjectMetadataAssetsConfig {
45
45
HTMLHandling : cloudflare .F (workers .ScriptUpdateParamsBodyObjectMetadataAssetsConfigHTMLHandlingAutoTrailingSlash ),
46
46
NotFoundHandling : cloudflare .F (workers .ScriptUpdateParamsBodyObjectMetadataAssetsConfigNotFoundHandlingNone ),
47
+ ServeDirectly : cloudflare .F (true ),
47
48
}),
48
49
JWT : cloudflare .F ("jwt" ),
49
50
}),
Original file line number Diff line number Diff line change @@ -334,6 +334,10 @@ type DispatchNamespaceScriptUpdateParamsBodyObjectMetadataAssetsConfig struct {
334
334
// Determines the response when a request does not match a static asset, and there
335
335
// is no Worker script.
336
336
NotFoundHandling param.Field [DispatchNamespaceScriptUpdateParamsBodyObjectMetadataAssetsConfigNotFoundHandling ] `json:"not_found_handling"`
337
+ // When true and the incoming request matches an asset, that will be served instead
338
+ // of invoking the Worker script. When false, requests will always invoke the
339
+ // Worker script.
340
+ ServeDirectly param.Field [bool ] `json:"serve_directly"`
337
341
}
338
342
339
343
func (r DispatchNamespaceScriptUpdateParamsBodyObjectMetadataAssetsConfig ) MarshalJSON () (data []byte , err error ) {
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ func TestDispatchNamespaceScriptUpdateWithOptionalParams(t *testing.T) {
44
44
Config : cloudflare .F (workers_for_platforms.DispatchNamespaceScriptUpdateParamsBodyObjectMetadataAssetsConfig {
45
45
HTMLHandling : cloudflare .F (workers_for_platforms .DispatchNamespaceScriptUpdateParamsBodyObjectMetadataAssetsConfigHTMLHandlingAutoTrailingSlash ),
46
46
NotFoundHandling : cloudflare .F (workers_for_platforms .DispatchNamespaceScriptUpdateParamsBodyObjectMetadataAssetsConfigNotFoundHandlingNone ),
47
+ ServeDirectly : cloudflare .F (true ),
47
48
}),
48
49
JWT : cloudflare .F ("jwt" ),
49
50
}),
You can’t perform that action at this time.
0 commit comments