set

@JvmName(name = "setCookie")
operator fun DslList<Context.Cookie, ContextKt.Dsl.CookieProxy>.set(index: Int, value: Context.Cookie)
Specifies HTTP cookies to affix to the response associated with this context.

repeated .elide.page.Context.Cookie cookie = 8;

Parameters

index

The index to set the value at.

value

The cookie to set.


@JvmName(name = "setHeader")
operator fun DslList<Context.ResponseHeader, ContextKt.Dsl.HeaderProxy>.set(index: Int, value: Context.ResponseHeader)
Custom headers to affix to the response associated with this context.

repeated .elide.page.Context.ResponseHeader header = 9;

Parameters

index

The index to set the value at.

value

The header to set.


@JvmName(name = "setVary")
operator fun DslList<String, ContextKt.Dsl.VaryProxy>.set(index: Int, value: String)
Set of HTTP request headers which cause this response to vary.

repeated string vary = 10;

Parameters

index

The index to set the value at.

value

The vary to set.


@JvmName(name = "setFeaturePolicy")
operator fun DslList<String, ContextKt.Dsl.FeaturePolicyProxy>.set(index: Int, value: String)
Specifies feature policies for this HTTP cycle.

repeated string feature_policy = 13;

Parameters

index

The index to set the value at.

value

The featurePolicy to set.


@JvmName(name = "setDnsPrefetch")
operator fun DslList<String, ContextKt.Dsl.DnsPrefetchProxy>.set(index: Int, value: String)
Specifies hostnames to pre-load DNS records for.

repeated string dns_prefetch = 18;

Parameters

index

The index to set the value at.

value

The dnsPrefetch to set.


@JvmName(name = "setPreconnect")
operator fun DslList<String, ContextKt.Dsl.PreconnectProxy>.set(index: Int, value: String)
Specifies hostnames to pre-connect to.

repeated string preconnect = 19;

Parameters

index

The index to set the value at.

value

The preconnect to set.