WorkerScriptAssetsConfigArgs

data class WorkerScriptAssetsConfigArgs(val htmlHandling: Output<String>? = null, val notFoundHandling: Output<String>? = null, val runWorkerFirst: Output<Boolean>? = null, val serveDirectly: Output<Boolean>? = null) : ConvertibleToJava<WorkerScriptAssetsConfigArgs>

Constructors

Link copied to clipboard
constructor(htmlHandling: Output<String>? = null, notFoundHandling: Output<String>? = null, runWorkerFirst: Output<Boolean>? = null, serveDirectly: Output<Boolean>? = null)

Properties

Link copied to clipboard
val htmlHandling: Output<String>? = null

Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".

Link copied to clipboard
val notFoundHandling: Output<String>? = null

Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".

Link copied to clipboard
val runWorkerFirst: Output<Boolean>? = null

When true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script.

Link copied to clipboard
val serveDirectly: Output<Boolean>? = null

When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

Functions

Link copied to clipboard
open override fun toJava(): WorkerScriptAssetsConfigArgs