set
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.
Content copied to clipboard
repeated .elide.page.Context.Cookie cookie = 8;
Parameters
index
The index to set the value at.
value
The cookie to set.
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.
Content copied to clipboard
repeated .elide.page.Context.ResponseHeader header = 9;
Parameters
index
The index to set the value at.
value
The header to set.
Set of HTTP request headers which cause this response to vary.
Content copied to clipboard
repeated string vary = 10;
Parameters
index
The index to set the value at.
value
The vary to set.
Specifies feature policies for this HTTP cycle.
Content copied to clipboard
repeated string feature_policy = 13;
Parameters
index
The index to set the value at.
value
The featurePolicy to set.
Specifies hostnames to pre-load DNS records for.
Content copied to clipboard
repeated string dns_prefetch = 18;
Parameters
index
The index to set the value at.
value
The dnsPrefetch to set.
Specifies hostnames to pre-connect to.
Content copied to clipboard
repeated string preconnect = 19;
Parameters
index
The index to set the value at.
value
The preconnect to set.