HtmxRequest

@Serializable
data class HtmxRequest(val timeout: Duration? = null, val credentials: Boolean? = null, val noHeaders: Boolean? = null)(source)

Options for Hx.request.

Constructors

Link copied to clipboard
constructor(timeout: Duration? = null, credentials: Boolean? = null, noHeaders: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "credentials")
val credentials: Boolean? = null

if the request will send credentials

Link copied to clipboard
@SerialName(value = "noHeaders")
val noHeaders: Boolean? = null

strips all headers from the request

Link copied to clipboard
@Serializable(with = MillisecondsSerializer::class)
@SerialName(value = "timeout")
val timeout: Duration? = null

the timeout for the request