Context
Defines the notion of a *Render Context* for server-side pages in Gust. This protocol message is filled out with data
as configured by the developer (from `application.yml` and the active controller, as applicable) and provided as an
injected value to all server-side render operations.
When preparing context in Gust, adding a static script or stylesheet is done through `Context`. Setting page metadata
like the title, keywords, and manifest - also all done through `Context`. This of course has the added benefit of
being completely serializable, repeatable, and so on (i.e. all the benefits Protobuf brings).
Major context modules include:
- *Metadata*: Page-level metadata.
- *OpenGraph*: Properties for OG tags.
- *Twitter*: Properties for Twitter cards.
- *AppManifest*: Information to link or derive a web application manifest.
- *Styles*: Stylesheets and inline head-injected styles ("lifted styles").
- *Scripts*: Scripts to include, and inline head-injected logic ("lifted JS").
Content copied to clipboard
elide.page.Context
Types
Link copied to clipboard
Specifies details about an application manifest, which should be or is linked to a given web
page, that is being rendered by the render engine.
Content copied to clipboard
elide.page.Context.AppManifest
Link copied to clipboard
Link copied to clipboard
Defines the notion of a *Render Context* for server-side pages in Gust. This protocol message is filled out with data
as configured by the developer (from `application.yml` and the active controller, as applicable) and provided as an
injected value to all server-side render operations.
When preparing context in Gust, adding a static script or stylesheet is done through `Context`. Setting page metadata
like the title, keywords, and manifest - also all done through `Context`. This of course has the added benefit of
being completely serializable, repeatable, and so on (i.e. all the benefits Protobuf brings).
Major context modules include:
- *Metadata*: Page-level metadata.
- *OpenGraph*: Properties for OG tags.
- *Twitter*: Properties for Twitter cards.
- *AppManifest*: Information to link or derive a web application manifest.
- *Styles*: Stylesheets and inline head-injected styles ("lifted styles").
- *Scripts*: Scripts to include, and inline head-injected logic ("lifted JS").
Content copied to clipboard
elide.page.Context
Link copied to clipboard
Specifies supported client hints.
Content copied to clipboard
elide.page.Context.ClientHint
Link copied to clipboard
Specifies client hints context information.
Content copied to clipboard
elide.page.Context.ClientHints
Link copied to clipboard
Link copied to clipboard
Specifies estimated connection speed levels.
Content copied to clipboard
elide.page.Context.ConnectionHint
Link copied to clipboard
HTTP cookies to set on the response, including the content of each cookie, name, and any flags.
Content copied to clipboard
elide.page.Context.Cookie
Link copied to clipboard
Link copied to clipboard
Enumerates `Cross-Origin-Resource-Policy` settings.
Content copied to clipboard
elide.page.Context.CrossOriginResourcePolicy
Link copied to clipboard
Defines the notion of a dynamically-served-page `ETag`, which is calculated either from weak parameters (the date/
time it was served and a simple hash of the request) or strong parameters (full hash of the response).
Content copied to clipboard
elide.page.Context.DynamicETag
Link copied to clipboard
Link copied to clipboard
Specifies information about sets of fonts to include in the page via CSS declarations, or imports/link
references. Fonts are considered part of the stylesheet set of a page.
Content copied to clipboard
elide.page.Context.Fonts
Link copied to clipboard
Link copied to clipboard
Specifies a policy to apply via the `X-Frame-Options` header.
Content copied to clipboard
elide.page.Context.FramingPolicy
Link copied to clipboard
Defines the structure of well-known page-level metadata, including the page title, description,
keywords, and so on.
Content copied to clipboard
elide.page.Context.Metadata
Link copied to clipboard
Link copied to clipboard
Specifies information about an asset or foreign page linked to this page. Stylesheets, favorite icons ("favicons"),
HTTP preloading, and other features are implemented via HTML links.
Content copied to clipboard
elide.page.Context.PageLink
Link copied to clipboard
Link copied to clipboard
Specifies an individual RDF prefix block to include in the HTML tag.
Content copied to clipboard
elide.page.Context.RDFPrefix
Link copied to clipboard
Link copied to clipboard
Specifies a policy to apply via the `Referrer-Policy` header. All policy docs come from MDN.
Content copied to clipboard
elide.page.Context.ReferrerPolicy
Link copied to clipboard
Specifies custom response headers to affix to the request.
Content copied to clipboard
elide.page.Context.ResponseHeader
Link copied to clipboard
Link copied to clipboard
Specifies information about JavaScript code that should be included with a given page render. Scripts
included in this manner may be emitted inline or by reference (URI).
Content copied to clipboard
elide.page.Context.Scripts
Link copied to clipboard
Link copied to clipboard
Defines page-level style settings (CSS), including external stylesheets, lifted CSS that should
be rendered in the <head>, and more.
Content copied to clipboard
elide.page.Context.Styles
Link copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies the selected CDN prefix to use.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto cdn_prefix = 17;
Link copied to clipboard
Specifies the selected CDN prefix to use.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto cdn_prefix = 17;
Link copied to clipboard
Specifies that the `nosniff` flag should be included in a `X-Content-Type-Options` header.
Content copied to clipboard
bool content_type_nosniff = 16;
Link copied to clipboard
Specifies HTTP cookies to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.Cookie cookie = 8;
Link copied to clipboard
Specifies HTTP cookies to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.Cookie cookie = 8;
Link copied to clipboard
Specifies HTTP cookies to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.Cookie cookie = 8;
Link copied to clipboard
Specifies HTTP cookies to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.Cookie cookie = 8;
Link copied to clipboard
Specifies HTTP cookies to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.Cookie cookie = 8;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies hostnames to pre-load DNS records for.
Content copied to clipboard
repeated string dns_prefetch = 18;
Link copied to clipboard
Specifies hostnames to pre-load DNS records for.
Content copied to clipboard
repeated string dns_prefetch = 18;
Link copied to clipboard
Specifies hostnames to pre-load DNS records for.
Content copied to clipboard
repeated string dns_prefetch = 18;
Link copied to clipboard
Specifies hostnames to pre-load DNS records for.
Content copied to clipboard
repeated string dns_prefetch = 18;
Link copied to clipboard
`ETag` information to enclose with this page, when rendered.
Content copied to clipboard
.elide.page.Context.DynamicETag etag = 6;
Link copied to clipboard
`ETag` information to enclose with this page, when rendered.
Content copied to clipboard
.elide.page.Context.DynamicETag etag = 6;
Link copied to clipboard
Specifies feature policies for this HTTP cycle.
Content copied to clipboard
repeated string feature_policy = 13;
Link copied to clipboard
Specifies feature policies for this HTTP cycle.
Content copied to clipboard
repeated string feature_policy = 13;
Link copied to clipboard
Specifies feature policies for this HTTP cycle.
Content copied to clipboard
repeated string feature_policy = 13;
Link copied to clipboard
Specifies feature policies for this HTTP cycle.
Content copied to clipboard
repeated string feature_policy = 13;
Link copied to clipboard
Fonts to include/load on the page.
Content copied to clipboard
.elide.page.Context.Fonts fonts = 3;
Link copied to clipboard
Fonts to include/load on the page.
Content copied to clipboard
.elide.page.Context.Fonts fonts = 3;
Link copied to clipboard
Specifies options when a page is referenced as a frame.
Content copied to clipboard
.elide.page.Context.FramingPolicy framing_policy = 15;
Link copied to clipboard
Specifies options when a page is referenced as a frame.
Content copied to clipboard
.elide.page.Context.FramingPolicy framing_policy = 15;
Link copied to clipboard
Custom headers to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.ResponseHeader header = 9;
Link copied to clipboard
Custom headers to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.ResponseHeader header = 9;
Link copied to clipboard
Custom headers to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.ResponseHeader header = 9;
Link copied to clipboard
Custom headers to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.ResponseHeader header = 9;
Link copied to clipboard
Custom headers to affix to the response associated with this context.
Content copied to clipboard
repeated .elide.page.Context.ResponseHeader header = 9;
Link copied to clipboard
Information provided by client-indicated hints.
Content copied to clipboard
.elide.page.Context.ClientHints hints = 12;
Link copied to clipboard
Information provided by client-indicated hints.
Content copied to clipboard
.elide.page.Context.ClientHints hints = 12;
Link copied to clipboard
Link copied to clipboard
Language to send in the `Content-Language` header.
Content copied to clipboard
string language = 11;
Link copied to clipboard
Language to send in the `Content-Language` header.
Content copied to clipboard
string language = 11;
Link copied to clipboard
Application manifest for a given page or web app.
Content copied to clipboard
.elide.page.Context.AppManifest manifest = 5;
Link copied to clipboard
Application manifest for a given page or web app.
Content copied to clipboard
.elide.page.Context.AppManifest manifest = 5;
Link copied to clipboard
Metadata definitions for this web page render context.
Content copied to clipboard
.elide.page.Context.Metadata meta = 1;
Link copied to clipboard
Metadata definitions for this web page render context.
Content copied to clipboard
.elide.page.Context.Metadata meta = 1;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies hostnames to pre-connect to.
Content copied to clipboard
repeated string preconnect = 19;
Link copied to clipboard
Specifies hostnames to pre-connect to.
Content copied to clipboard
repeated string preconnect = 19;
Link copied to clipboard
Specifies hostnames to pre-connect to.
Content copied to clipboard
repeated string preconnect = 19;
Link copied to clipboard
Specifies hostnames to pre-connect to.
Content copied to clipboard
repeated string preconnect = 19;
Link copied to clipboard
Specifies the `Referrer-Policy` to apply to this HTTP cycle, as applicable.
Content copied to clipboard
.elide.page.Context.ReferrerPolicy referrer_policy = 21;
Link copied to clipboard
Specifies the `Referrer-Policy` to apply to this HTTP cycle, as applicable.
Content copied to clipboard
.elide.page.Context.ReferrerPolicy referrer_policy = 21;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Scripts to include on the page or lift into the head.
Content copied to clipboard
.elide.page.Context.Scripts scripts = 4;
Link copied to clipboard
Scripts to include on the page or lift into the head.
Content copied to clipboard
.elide.page.Context.Scripts scripts = 4;
Link copied to clipboard
Link copied to clipboard
CSS definitions and lifted code for the page head.
Content copied to clipboard
.elide.page.Context.Styles styles = 2;
Link copied to clipboard
CSS definitions and lifted code for the page head.
Content copied to clipboard
.elide.page.Context.Styles styles = 2;
Link copied to clipboard
Link copied to clipboard
Set of HTTP request headers which cause this response to vary.
Content copied to clipboard
repeated string vary = 10;
Link copied to clipboard
Set of HTTP request headers which cause this response to vary.
Content copied to clipboard
repeated string vary = 10;
Link copied to clipboard
Set of HTTP request headers which cause this response to vary.
Content copied to clipboard
repeated string vary = 10;
Link copied to clipboard
Old-style Cross-Site Scripting vulnerability protection policy.
Content copied to clipboard
string xss_protection = 20;
Link copied to clipboard
Old-style Cross-Site Scripting vulnerability protection policy.
Content copied to clipboard
string xss_protection = 20;
Link copied to clipboard
Specifies the selected CDN prefix to use.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto cdn_prefix = 17;
Link copied to clipboard
Application manifest for a given page or web app.
Content copied to clipboard
.elide.page.Context.AppManifest manifest = 5;
Link copied to clipboard
Scripts to include on the page or lift into the head.
Content copied to clipboard
.elide.page.Context.Scripts scripts = 4;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <ContainingT : Message?, T> newFileScopedGeneratedExtension(singularType: Class<out Any>, defaultInstance: Message): GeneratedMessage.GeneratedExtension<ContainingT, T>
Link copied to clipboard
open fun <ContainingT : Message?, T> newMessageScopedGeneratedExtension(scope: Message, descriptorIndex: Int, singularType: Class<out Any>, defaultInstance: Message): GeneratedMessage.GeneratedExtension<ContainingT, T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard