WorkersScriptAssetsConfigArgs

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

Constructors

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

Properties

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

The contents of a _headers file (used to attach custom headers on asset responses)

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

The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving)

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(): WorkersScriptAssetsConfigArgs