RuleRuleActionFixedResponseConfig

data class RuleRuleActionFixedResponseConfig(val content: String, val contentType: String? = null, val httpCode: String? = null)

Constructors

Link copied to clipboard
constructor(content: String, contentType: String? = null, httpCode: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

Link copied to clipboard
val contentType: String? = null

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

Link copied to clipboard
val httpCode: String? = null

The redirect method. Valid values: 301, 302, 303, 307, and 308.